Commit 0b76cec1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: Use _WIN32_WINNT 0x501 everywhere

parent 43630c70
...@@ -294,21 +294,19 @@ case "${host_os}" in ...@@ -294,21 +294,19 @@ case "${host_os}" in
*mingw32* | *cygwin* | *wince* | *mingwce*) *mingw32* | *cygwin* | *wince* | *mingwce*)
AC_CHECK_TOOL(WINDRES, windres, :) AC_CHECK_TOOL(WINDRES, windres, :)
AC_CHECK_TOOL(OBJCOPY, objcopy, :) AC_CHECK_TOOL(OBJCOPY, objcopy, :)
AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
case "${host_os}" in case "${host_os}" in
*wince* | *mingwce* | *mingw32ce*) *wince* | *mingwce* | *mingw32ce*)
SYS=mingwce SYS=mingwce
dnl Sadly CeGCC still needs non-wince macros dnl Sadly CeGCC still needs non-wince macros
AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows 2000 APIs.])
;; ;;
*mingw32*) *mingw32*)
SYS=mingw32 SYS=mingw32
AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows XP APIs.])
;; ;;
*cygwin*) *cygwin*)
dnl Check if we are using the mno-cygwin mode in which case we are dnl Check if we are using the mno-cygwin mode in which case we are
dnl actually dealing with a mingw32 compiler. dnl actually dealing with a mingw32 compiler.
AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
AC_EGREP_CPP(yes, AC_EGREP_CPP(yes,
[#ifdef WIN32 [#ifdef WIN32
yes yes
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
# include "config.h" # include "config.h"
#endif #endif
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0500
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_sout.h> #include <vlc_sout.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment