fix for thev "#pragna once" guard
gcc 3.4.6 don't understand "#if PATHCMP==stricmp"
where "#define PATHCMP stricmp"
This commit is contained in:
2
tccpp.c
2
tccpp.c
@ -1480,7 +1480,7 @@ static void pragma_parse(TCCState *s1)
|
||||
char buf1[sizeof(file->filename) + sizeof(ONCE_PREFIX)];
|
||||
strcpy(buf1, ONCE_PREFIX);
|
||||
strcat(buf1, file->filename);
|
||||
#if PATHCMP==stricmp
|
||||
#ifdef PATH_NOCASE
|
||||
strupr(buf1);
|
||||
#endif
|
||||
add_cached_include(s1, file->filename, tok_alloc(buf1, strlen(buf1))->tok);
|
||||
|
||||
Reference in New Issue
Block a user