Win32: Use the symbolic name for the default NTVER

And embed the given `_WIN32_WINNT` in config.h as well, for extension
libraries.
This commit is contained in:
Nobuyoshi Nakada 2024-11-30 22:12:33 +09:00
parent 091c7d4a54
commit 029174a402
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-01 09:02:21 +00:00

View File

@ -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