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