diff --git a/win32/Makefile.sub b/win32/Makefile.sub index f19f274833..591278ae22 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -176,7 +176,7 @@ PLATFORM = mswin32 !error RT not defined. Retry from configure pass. !endif !ifndef NTVER -NTVER = 0x0602 # _WIN32_WINNT_WIN8 +NTVER = _WIN32_WINNT_WIN8 !endif !ifdef NTVER ARCHDEFS = -D_WIN32_WINNT=$(NTVER) $(ARCHDEFS) @@ -664,6 +664,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub !if defined(ABI_VERSION) #define RUBY_ABI_VERSION $(ABI_VERSION) !endif +#define _WIN32_WINNT $(NTVER) #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1