CMake+Windows: Try to prevent symbol redefinitions again

master
João Valverde 2023-01-14 03:33:07 +00:00
parent cdff6da68e
commit 184a567621
2 changed files with 16 additions and 10 deletions

View File

@ -477,16 +477,6 @@ if(WIN32)
# This avoids conflicts with the C++ standard library.
#
-DNOMINMAX
#
# Make sure everyone is using the same API and that it's sufficient
# for our needs.
# This should match the following:
# - The <compatibility><application> section in resources\wireshark.exe.manifest.in
# - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
# - The VersionNT parts of packaging\wix\Prerequisites.wxi
#
-DNTDDI_VERSION=NTDDI_WIN7
-D_WIN32_WINNT=_WIN32_WINNT_WIN7
)
endif()

View File

@ -321,6 +321,22 @@
# ifndef __STDC__
# define __STDC__ 0
# endif
/*
* Make sure everyone is using the same API and that it's sufficient
* for our needs.
* This should match the following:
* - The <compatibility><application> section in resources\wireshark.exe.manifest.in
* - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
* - The VersionNT parts of packaging\wix\Prerequisites.wxi
*/
# ifndef NTDDI_VERSION
# define NTDDI_VERSION NTDDI_WIN7
# endif
# ifndef _WIN32_WINNT
# define _WIN32_WINNT _WIN32_WINNT_WIN7
# endif
#endif
#ifdef HAVE_PCRE2