Fixed issue with Windows builds
This commit is contained in:
parent
05fd9771ca
commit
e386c3aeaa
|
@ -13,12 +13,12 @@
|
||||||
#define realpath(s, dummy) lrealpath(s)
|
#define realpath(s, dummy) lrealpath(s)
|
||||||
#define DIR_SEP_CHAR '\\'
|
#define DIR_SEP_CHAR '\\'
|
||||||
#define DIR_SEP_STR "\\"
|
#define DIR_SEP_STR "\\"
|
||||||
#define pathcmp(path1,path2,length) strncasecmp(path1,path2,length) /* strncasecmp provided by libiberty */
|
#define pathcmp(path1, path2, length) strncasecmp(path1, path2, length) /* strncasecmp provided by libiberty */
|
||||||
#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR && ((strlen(file_name)>2 && file_name[1] != ':') || strlen(file_name)<=2))
|
#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR && ((strlen(file_name) > 2 && file_name[1] != ':') || strlen(file_name) <= 2))
|
||||||
#else
|
#else
|
||||||
#define DIR_SEP_CHAR '/'
|
#define DIR_SEP_CHAR '/'
|
||||||
#define DIR_SEP_STR "/"
|
#define DIR_SEP_STR "/"
|
||||||
#define pathcmp(path1,path2,length) strncmp(path1,path2,length)
|
#define pathcmp(path1, path2, length) strncmp(path1, path2, length)
|
||||||
#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR)
|
#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue