Browse code

Fixed issue with Windows builds

Devine Lu Linvega authored on 19/03/2023 21:12:14
Showing 1 changed files
... ...
@@ -13,12 +13,12 @@
13 13
 #define realpath(s, dummy) lrealpath(s)
14 14
 #define DIR_SEP_CHAR '\\'
15 15
 #define DIR_SEP_STR "\\"
16
-#define pathcmp(path1,path2,length) strncasecmp(path1,path2,length) /* strncasecmp provided by libiberty */
17
-#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR && ((strlen(file_name)>2 && file_name[1] != ':') || strlen(file_name)<=2))
16
+#define pathcmp(path1, path2, length) strncasecmp(path1, path2, length) /* strncasecmp provided by libiberty */
17
+#define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR && ((strlen(file_name) > 2 && file_name[1] != ':') || strlen(file_name) <= 2))
18 18
 #else
19 19
 #define DIR_SEP_CHAR '/'
20 20
 #define DIR_SEP_STR "/"
21
-#define pathcmp(path1,path2,length) strncmp(path1,path2,length)
21
+#define pathcmp(path1, path2, length) strncmp(path1, path2, length)
22 22
 #define notdriveroot(file_name) (file_name[0] != DIR_SEP_CHAR)
23 23
 #endif
24 24