[ros-diffs] [fireball] 31616: - Merge 31498 (include define guard fix).

fireball at svn.reactos.org fireball at svn.reactos.org
Sat Jan 5 21:45:31 CET 2008


Author: fireball
Date: Sat Jan  5 23:45:31 2008
New Revision: 31616

URL: http://svn.reactos.org/svn/reactos?rev=31616&view=rev
Log:
- Merge 31498 (include define guard fix).

Modified:
    trunk/reactos/tools/widl_20080105/widl.c

Modified: trunk/reactos/tools/widl_20080105/widl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl_20080105/widl.c?rev=31616&r1=31615&r2=31616&view=diff
==============================================================================
--- trunk/reactos/tools/widl_20080105/widl.c (original)
+++ trunk/reactos/tools/widl_20080105/widl.c Sat Jan  5 23:45:31 2008
@@ -549,7 +549,12 @@
   }
 
   if(do_header) {
-    header_token = make_token(header_name);
+    if (strrchr(header_name, '\\'))
+        header_token = make_token(strrchr(header_name, '\\') + 1);
+    else if (strrchr(header_name, '/'))
+        header_token = make_token(strrchr(header_name, '/') + 1);
+    else
+        header_token = make_token(header_name);
 
     if(!(header = fopen(header_name, "w"))) {
       fprintf(stderr, "Could not open %s for output\n", header_name);




More information about the Ros-diffs mailing list