summaryrefslogtreecommitdiff
path: root/include/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/generic.h')
-rw-r--r--include/generic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/generic.h b/include/generic.h
index 28a3baf..4920beb 100644
--- a/include/generic.h
+++ b/include/generic.h
@@ -66,7 +66,7 @@ typedef long long int64;
typedef unsigned long long uint64;
#elif defined _WIN32
typedef _int64 int64;
-typedef unsigned _int64 int64;
+typedef unsigned _int64 uint64;
#else
#error Unsupported platform (need 64 bits ints definition)
#endif
@@ -119,7 +119,7 @@ inline T MIN(T a, T b) {
#if defined __linux__ || defined __CYGWIN32__
#define MKDIR(name) mkdir(name, 0777)
-#elif defined __WIN32__
+#elif defined __WIN32__ || defined _WIN32
#define MKDIR mkdir
#else
#error Unknow compiler/platform