Skip to content

Commit 029174a

Browse files
committed
Win32: Use the symbolic name for the default NTVER
And embed the given `_WIN32_WINNT` in config.h as well, for extension libraries.
1 parent 091c7d4 commit 029174a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

win32/Makefile.sub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ PLATFORM = mswin32
176176
!error RT not defined. Retry from configure pass.
177177
!endif
178178
!ifndef NTVER
179-
NTVER = 0x0602 # _WIN32_WINNT_WIN8
179+
NTVER = _WIN32_WINNT_WIN8
180180
!endif
181181
!ifdef NTVER
182182
ARCHDEFS = -D_WIN32_WINNT=$(NTVER) $(ARCHDEFS)
@@ -664,6 +664,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
664664
!if defined(ABI_VERSION)
665665
#define RUBY_ABI_VERSION $(ABI_VERSION)
666666
!endif
667+
#define _WIN32_WINNT $(NTVER)
667668
#define STDC_HEADERS 1
668669
#define HAVE_SYS_TYPES_H 1
669670
#define HAVE_SYS_STAT_H 1

0 commit comments

Comments
 (0)