uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit e386c3aeaaa46668b1714a0600f873d85a1b3ac5
parent 05fd9771ca8292079198634f4164078223e090f4
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sun, 19 Mar 2023 14:12:14 -0700

Fixed issue with Windows builds

Diffstat:
Msrc/devices/file.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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