diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/generic.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/generic.h b/include/generic.h index 2b3dac0..e11f518 100644 --- a/include/generic.h +++ b/include/generic.h @@ -56,12 +56,14 @@ typedef int32 ssize_t; #if defined __linux__ || defined __solaris__ || defined __CYGWIN32__ || defined FORCE64 typedef long long int64; typedef unsigned long long uint64; -#elseif defined _WIN32 +#else +#if defined _WIN32 typedef _int64 int64; typedef unsigned _int64 uint64; #else #error Unsupported platform (need 64 bits ints definition) #endif +#endif #ifndef PACKED #if defined __linux__ || defined __CYGWIN32__ @@ -113,10 +115,12 @@ inline T MIN(T a, T b) { #if defined __linux__ || defined __CYGWIN32__ #define MKDIR(name) mkdir(name, 0777) -#elseif defined __WIN32__ || defined _WIN32 +#else +#if defined __WIN32__ || defined _WIN32 #define MKDIR mkdir #else #error Unknow compiler/platform #endif +#endif #endif |