set winver consistently across build systems

pull/676/head
Brad House 11 months ago
parent 4f490b40df
commit 3324cfce0b
  1. 2
      Makefile.Watcom
  2. 2
      Makefile.msvc
  3. 18
      src/lib/config-win32.h

@ -43,7 +43,7 @@ CP = copy
CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm -aa & CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm -aa &
-wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY & -wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY &
-dNTDDI_VERSION=0x06000000 -I. -I.\include -I.\src\lib $(SYS_INCL) -dNTDDI_VERSION=0x06020000 -I. -I.\include -I.\src\lib $(SYS_INCL)
LFLAGS = option quiet, map, caseexact, eliminate LFLAGS = option quiet, map, caseexact, eliminate

@ -180,7 +180,7 @@ CFLAGS = /UWIN32 /DWATT32 /I$(WATT_ROOT)\inc
EX_LIBS_REL = $(WATT_ROOT)\lib\wattcpvc_imp.lib EX_LIBS_REL = $(WATT_ROOT)\lib\wattcpvc_imp.lib
EX_LIBS_DBG = $(WATT_ROOT)\lib\wattcpvc_imp_d.lib EX_LIBS_DBG = $(WATT_ROOT)\lib\wattcpvc_imp_d.lib
!ELSE !ELSE
CFLAGS = /DWIN32 /D_WIN32_WINNT=0x0600 CFLAGS = /DWIN32 /D_WIN32_WINNT=0x0602
EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib EX_LIBS_REL = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib EX_LIBS_DBG = ws2_32.lib advapi32.lib kernel32.lib iphlpapi.lib
!ENDIF !ENDIF

@ -260,22 +260,18 @@
# define _CRT_NONSTDC_NO_DEPRECATE 1 # define _CRT_NONSTDC_NO_DEPRECATE 1
#endif #endif
/* Set the Target to Vista. However, any symbols required above Win2000 /* Set the Target to Win8 */
* should be loaded via LoadLibrary() */
#if defined(_MSC_VER) && (_MSC_VER >= 1500) #if defined(_MSC_VER) && (_MSC_VER >= 1500)
# define VS2008_MIN_TARGET 0x0600 # define MSVC_MIN_TARGET 0x0602
#endif #endif
/* VS2008 default target settings and minimum build target check. */ /* MSVC default target settings */
#if defined(_MSC_VER) && (_MSC_VER >= 1500) #if defined(_MSC_VER) && (_MSC_VER >= 1500)
# ifndef _WIN32_WINNT # ifndef _WIN32_WINNT
# define _WIN32_WINNT VS2008_MIN_TARGET # define _WIN32_WINNT MSVC_MIN_TARGET
# endif # endif
# ifndef WINVER # ifndef WINVER
# define WINVER VS2008_MIN_TARGET # define WINVER MSVC_MIN_TARGET
# endif
# if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
# error VS2008 does not support Windows build targets prior to Windows 2000
# endif # endif
#endif #endif
@ -283,10 +279,10 @@
target is Windows Vista. */ target is Windows Vista. */
#if defined(__POCC__) && (__POCC__ >= 500) #if defined(__POCC__) && (__POCC__ >= 500)
# ifndef _WIN32_WINNT # ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0600 # define _WIN32_WINNT 0x0602
# endif # endif
# ifndef WINVER # ifndef WINVER
# define WINVER 0x0600 # define WINVER 0x0602
# endif # endif
#endif #endif

Loading…
Cancel
Save