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…
==============================================================================
--- 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);