Commit 82b3f53d authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

win32: don't override _WIN32_WINNT if a more recent one is defined

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7785d8c2
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#define _WIN32_WINNT 0x600 #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x600
#endif
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#endif #endif
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#define _WIN32_WINNT 0x600 #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x600
#endif
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#endif #endif
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#ifndef VLC_GESTURE_H_ #ifndef VLC_GESTURE_H_
#define VLC_GESTURE_H_ #define VLC_GESTURE_H_
# ifdef _WIN32_WINNT # if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x601
# undef _WIN32_WINNT # undef _WIN32_WINNT
# endif
# define _WIN32_WINNT 0x0601 # define _WIN32_WINNT 0x0601
# endif
# include <windows.h> # include <windows.h>
# include <winuser.h> # include <winuser.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