Browse Source

Bugfix: Since at least one of unix (or __APPLE__) or WIN32 is required by util.h, make sure unix is defined if WIN32 is not

Neither were being defined by default for GCC -std=c1x
Luke Dashjr 12 years ago
parent
commit
b3e61ac837
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compat.h

+ 4 - 0
compat.h

@@ -18,6 +18,10 @@
 
 
 #include <stdbool.h>
 #include <stdbool.h>
 
 
+#if !(defined(WIN32) || defined(unix))
+#define unix
+#endif
+
 #ifdef WIN32
 #ifdef WIN32
 #include <errno.h>
 #include <errno.h>
 #include <time.h>
 #include <time.h>