See if _MSC_VER is defined before checking its value
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 10 Jun 2018 21:04:50 +0000 (21:04 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 10 Jun 2018 21:21:25 +0000 (21:21 +0000)
gtk/gtkiconcache.c

index df2805b1dd25be0cc92978e00a578a48e9eb702c..273865a3388a68673dbfa73fc27d801af74d441b 100644 (file)
@@ -108,7 +108,7 @@ gtk_icon_cache_new_for_path (const gchar *path)
 /* Bug 660730: _fstat32 is only defined in msvcrt80.dll+/VS 2005+ */
 /*             or possibly in the msvcrt.dll linked to by the Windows DDK */
 /*             (will need to check on the Windows DDK part later) */
-#if ((_MSC_VER >= 1400 || __MSVCRT_VERSION__ >= 0x0800) || defined (__MINGW64_VERSION_MAJOR)) && !defined(_WIN64)
+#if ((defined (_MSC_VER) && (_MSC_VER >= 1400 || __MSVCRT_VERSION__ >= 0x0800)) || defined (__MINGW64_VERSION_MAJOR)) && !defined(_WIN64)
 #undef fstat /* Just in case */
 #define fstat _fstat32  
 #endif