Improve check for Windows platforms
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Feb 2013 20:31:58 +0000 (15:31 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Feb 2013 20:31:58 +0000 (15:31 -0500)
Instead of checking for compiler, check for platform.

src/hb-atomic-private.hh
src/hb-mutex-private.hh

index c7456e0..bb10fe1 100644 (file)
@@ -42,7 +42,7 @@
 #if 0
 
 
-#elif !defined(HB_NO_MT) && (defined(_MSC_VER) || defined(__MINGW32__))
+#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
 
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
index fcbdb31..0fb21c2 100644 (file)
@@ -42,7 +42,7 @@
 #if 0
 
 
-#elif !defined(HB_NO_MT) && (defined(_MSC_VER) || defined(__MINGW32__))
+#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
 
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>