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:
seyko
2016-04-14 21:39:34 +03:00
parent 34feee0ed6
commit 5fb57bead4
2 changed files with 2 additions and 1 deletions

1
tcc.h
View File

@ -101,6 +101,7 @@
# define IS_DIRSEP(c) (c == '/' || c == '\\')
# define IS_ABSPATH(p) (IS_DIRSEP(p[0]) || (p[0] && p[1] == ':' && IS_DIRSEP(p[2])))
# define PATHCMP stricmp
# define PATH_NOCASE
#else
# define IS_DIRSEP(c) (c == '/')
# define IS_ABSPATH(p) IS_DIRSEP(p[0])