Better support for building with mingw64; thanks to Nicolas Roche @ Altran for the...
authorMorgan Deters <mdeters@cs.nyu.edu>
Fri, 11 Apr 2014 19:30:31 +0000 (15:30 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Fri, 11 Apr 2014 19:30:31 +0000 (15:30 -0400)
src/lib/clock_gettime.h

index 43c3395a499b1bfd6e9abc10e41634c1979a33f3..8860e717b796ffb9743fd63c89ada74575ae2f1d 100644 (file)
@@ -30,7 +30,7 @@
 
 /* otherwise, we have to define it */
 
-#if defined(__WIN32__) && !defined(__WIN64__)
+#if defined(__WIN32__) && !defined(_W64)
 
 #ifdef __cplusplus
 extern "C" {
@@ -45,12 +45,12 @@ struct timespec {
 }/* extern "C" */
 #endif /* __cplusplus */
 
-#else /* !__WIN32__ || __WIN64__ */
+#else /* !__WIN32__ || _W64 */
 
 /* get timespec from <time.h> */
 #include <time.h>
 
-#endif /* __WIN32__ && !__WIN64__ */
+#endif /* __WIN32__ && !_W64 */
 
 #ifdef __cplusplus
 extern "C" {