diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-11 17:12:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-11 17:12:24 +0900 |
commit | 93edbb4c08856d6d10d0e2676cc2e36eef839a7d (patch) | |
tree | ff7d404a1e679394ac9e39ec185c9f6d8df17178 /win32/Makefile.sub | |
parent | e56e089b1f92dbc55d3239b6843dd0786be9000e (diff) |
Support version ranges for MSVC [Feature #16763]
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 3951ef1ede..df9eab2587 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -607,9 +607,15 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub @$(IFCHANGE) "--timestamp=$(@:/=\)" $(RUBY_CONFIG_H:/=\) << #ifndef $(guard) #define $(guard) 1 +!if defined(MSC_VER_LOWER) +#if (_MSC_VER < $(MSC_VER_LOWER)) || (_MSC_VER > $(MSC_VER_UPPER)) +#error MSC version unmatch: $(MSC_VER_LOWER)..$(MSC_VER_UPPER) is expected. +#endif +!else #if _MSC_VER != $(MSC_VER) #error MSC version unmatch: $(MSC_VER) is expected. #endif +!endif #define RUBY_MSVCRT_VERSION $(RT_VER) #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 |