Meson: Define _WIN32_WINNT in the toplevel meson.build file

This commit is contained in:
Luca Bacci
2024-10-02 11:34:56 +02:00
parent 419758576f
commit a0c823e11d
5 changed files with 2 additions and 27 deletions

View File

@@ -70,8 +70,6 @@ libgdk_win32 = static_library('gdk-win32',
'-DGTK_COMPILATION',
'-DG_LOG_DOMAIN="Gdk"',
'-DINSIDE_GDK_WIN32',
'-D_WIN32_WINNT=0x0601',
'-DWINVER=0x0601',
],
dependencies: [ gdk_deps, gdk_win32_deps ],
)

View File

@@ -19,10 +19,6 @@
#include "config.h"
/* Vista or newer */
#define _WIN32_WINNT 0x0600
#include <sdkddkver.h>
#define COBJMACROS
#include "gtkfilechoosernativeprivate.h"

View File

@@ -16,16 +16,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#ifndef _WIN32_WINNT
/* Vista or newer */
#define _WIN32_WINNT 0x0600
#endif
#ifndef WINVER
#define WINVER _WIN32_WINNT
#endif
#endif
#include "config.h"
#include "gtkprint-win32.h"

View File

@@ -16,16 +16,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#ifndef _WIN32_WINNT
/* Vista or newer */
#define _WIN32_WINNT 0x0600
#endif
#ifndef WINVER
#define WINVER _WIN32_WINNT
#endif
#endif
#define COBJMACROS
#include "config.h"
#include <math.h>

View File

@@ -62,7 +62,8 @@ add_project_arguments('-D_GNU_SOURCE', language: 'c')
if host_machine.system() == 'windows'
add_project_arguments(['-DUNICODE',
'-D_UNICODE'], language: 'c')
'-D_UNICODE',
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7'], language: 'c')
endif
# Use debug/optimization flags to determine whether to enable debug or disable