summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxtkoba <69125751+xtkoba@users.noreply.github.com>2021-05-05 07:45:23 +0900
committerPeter Zhu <peter@peterzhu.ca>2021-05-04 20:38:25 -0400
commit44cff500a0ad565952e84935bc98523c36a91b06 (patch)
tree66a739f8d28bce8b743311347aaf6da0ca56762a
parent46dd295a53640a5ccf21688a5539ac50e17008f6 (diff)
`_MSC_VER` may not be defined
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4453
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 940a85a4de..d358fc3171 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -42,7 +42,7 @@
#include <shlobj.h>
#include <mbstring.h>
#include <shlwapi.h>
-#if _MSC_VER >= 1400
+#if defined _MSC_VER && _MSC_VER >= 1400
#include <crtdbg.h>
#include <rtcapi.h>
#endif