diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-06-10 21:04:50 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-06-10 21:21:25 +0000 |
commit | 0365dadad9a7713e242a757ebd69f5b725624454 (patch) | |
tree | 103a2c8dedef2f6d56241e40d55a47cdfc78463d /gtk/gtkiconcache.c | |
parent | 9330be8cf9e513ef52316bb9c5434c54007c6914 (diff) | |
download | gtk+-0365dadad9a7713e242a757ebd69f5b725624454.tar.gz |
See if _MSC_VER is defined before checking its value
Diffstat (limited to 'gtk/gtkiconcache.c')
-rw-r--r-- | gtk/gtkiconcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |