Cygwin: utils: set _WIN32_WINNT and NTDDI_VERSION via Makefile
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
88a2f9875a
commit
48a76190e8
|
@ -8,7 +8,7 @@
|
|||
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror
|
||||
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
|
||||
AM_CFLAGS=$(cflags_common) $(CFLAGS_COMMON)
|
||||
AM_CXXFLAGS=$(cxxflags_common) $(CFLAGS_COMMON)
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ details. */
|
|||
#include <wctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#define WINVER 0x0a00
|
||||
#define NOCOMATTRIBUTE
|
||||
#include <windows.h>
|
||||
#include <userenv.h>
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <unistd.h>
|
||||
#include <libgen.h>
|
||||
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#define PSAPI_VERSION 1
|
||||
#include <windows.h>
|
||||
#include <winternl.h>
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
#include <limits.h>
|
||||
#include <sys/cygwin.h>
|
||||
#include <cygwin/version.h>
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#define WINVER 0x0a00
|
||||
#include <windows.h>
|
||||
|
||||
#define LOCALE_ALIAS "/usr/share/locale/locale.alias"
|
||||
|
|
|
@ -15,7 +15,7 @@ AM_CPPFLAGS =
|
|||
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror
|
||||
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
|
||||
AM_CXXFLAGS=-fno-exceptions -fno-rtti -fno-use-cxa-atexit $(flags_common) $(CFLAGS_COMMON)
|
||||
|
||||
bin_PROGRAMS = \
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#define cygwin_internal cygwin_internal_dontuse
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
#define _WIN32_WINNT 0x0a00
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -13,7 +13,6 @@ details. */
|
|||
#include <wchar.h>
|
||||
#include <getopt.h>
|
||||
#include <locale.h>
|
||||
#define WINVER 0x0502
|
||||
#include <windows.h>
|
||||
#include <sys/cygwin.h>
|
||||
#include <cygwin/version.h>
|
||||
|
|
Loading…
Reference in New Issue