@@ -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)