mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Merge 31498 (include define guard fix).
svn path=/trunk/; revision=31616
This commit is contained in:
parent
0b560fde00
commit
0642d6bf5c
1 changed files with 6 additions and 1 deletions
|
@ -549,7 +549,12 @@ int main(int argc,char *argv[])
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue