From 0365dadad9a7713e242a757ebd69f5b725624454 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sun, 10 Jun 2018 21:04:50 +0000 Subject: [PATCH] See if _MSC_VER is defined before checking its value --- gtk/gtkiconcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index df2805b1dd..273865a338 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -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 -- 2.30.2