From 89d89646e8163b6c0874b9a3c14d4da974ea8219 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 17 Oct 2011 11:50:54 -0700 Subject: [PATCH] Fix intrin.h b0rkage with older MSVC Reported by Jonathan Kew. --- src/hb-object-private.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-object-private.hh b/src/hb-object-private.hh index 72ed8ba48..6a2f83ded 100644 --- a/src/hb-object-private.hh +++ b/src/hb-object-private.hh @@ -63,7 +63,7 @@ typedef volatile int hb_atomic_int_t; #define hb_atomic_int_set(AI, V) g_atomic_int_set (&(AI), V) -#elif defined(_MSC_VER) +#elif _MSC_VER >= 1600 #include @@ -75,7 +75,11 @@ typedef long hb_atomic_int_t; #else +#ifdef _MSC_VER +#pragma message("Could not find any system to define atomic_int macros, library will NOT be thread-safe") +#else #warning "Could not find any system to define atomic_int macros, library will NOT be thread-safe" +#endif typedef volatile int hb_atomic_int_t; #define hb_atomic_int_add(AI, V) ((AI) += (V), (AI) - (V))