From 029174a402b5f51f58cec4e16a134fc4fdf17553 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 30 Nov 2024 22:12:33 +0900 Subject: [PATCH] Win32: Use the symbolic name for the default NTVER And embed the given `_WIN32_WINNT` in config.h as well, for extension libraries. --- win32/Makefile.sub | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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