Browse Source

fixes for win

txlyre 1 day ago
parent
commit
60b6c45653
1 changed files with 6 additions and 0 deletions
  1. 6 0
      qic.c

+ 6 - 0
qic.c

@@ -8,6 +8,8 @@
 #if defined(_WIN32) || defined(_WIN64)
 #  define ON_WINDOWS
 #  include <windows.h>
+#  undef TRUE
+#  undef FALSE
 #else
 #  define ON_POSIX
 #  include <sys/stat.h>
@@ -30,6 +32,10 @@ int is_directory(char *path)
 #endif
 }
 
+#ifdef ON_WINDOWS
+#  define realpath(p) (_fullpath(NULL, (p), 0))
+#endif
+
 #define __STR0(x) #x
 #define __STR1(x) __STR0(x)