Meson: Define _WIN32_WINNT in the toplevel meson.build file
This commit is contained in:
@@ -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 ],
|
||||
)
|
||||
|
||||
@@ -19,10 +19,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
/* Vista or newer */
|
||||
#define _WIN32_WINNT 0x0600
|
||||
#include <sdkddkver.h>
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include "gtkfilechoosernativeprivate.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user