From e386c3aeaaa46668b1714a0600f873d85a1b3ac5 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 19 Mar 2023 14:12:14 -0700 Subject: [PATCH] Fixed issue with Windows builds --- src/devices/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/file.c b/src/devices/file.c index 2d920a9..bad915a 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -13,12 +13,12 @@ #define realpath(s, dummy) lrealpath(s) #define DIR_SEP_CHAR '\\' #define DIR_SEP_STR "\\" -#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 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)) #else #define DIR_SEP_CHAR '/' #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) #endif