Commit 91ad4149 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

win32: use _WIN32_WINNT_VISTA

parent 785b0f18
......@@ -18,9 +18,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < _WIN32_WINNT_VISTA
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x600
# define _WIN32_WINNT _WIN32_WINNT_VISTA
#endif
#ifdef HAVE_CONFIG_H
......
......@@ -18,9 +18,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < _WIN32_WINNT_VISTA
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x600
# define _WIN32_WINNT _WIN32_WINNT_VISTA
#endif
#ifdef HAVE_CONFIG_H
......
......@@ -28,10 +28,10 @@
#ifndef AVCODEC_DIRECTX_VA_H
#define AVCODEC_DIRECTX_VA_H
# if _WIN32_WINNT < 0x600
# if _WIN32_WINNT < _WIN32_WINNT_VISTA
/* d3d11 needs Vista support */
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x600
# define _WIN32_WINNT _WIN32_WINNT_VISTA
# endif
#include <vlc_common.h>
......
......@@ -699,7 +699,7 @@ static union
BOOL (*query) (PULONGLONG);
} interrupt;
#endif
#if (_WIN32_WINNT < 0x0600)
#if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
struct
{
ULONGLONG (*get) (void);
......@@ -731,7 +731,7 @@ static mtime_t mdate_interrupt (void)
static mtime_t mdate_tick (void)
{
#if (_WIN32_WINNT >= 0x0600)
#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
ULONGLONG ts = GetTickCount64 ();
#else
ULONGLONG ts = clk.tick.get ();
......@@ -868,7 +868,7 @@ static void SelectClockSource (vlc_object_t *obj)
if (!strcmp (name, "tick"))
{
msg_Dbg (obj, "using Windows time as clock source");
#if (_WIN32_WINNT < 0x0600)
#if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
HANDLE h = GetModuleHandle (_T("kernel32.dll"));
if (unlikely(h == NULL))
abort ();
......@@ -940,7 +940,7 @@ size_t EnumClockSource (vlc_object_t *obj, const char *var,
names[n] = xstrdup ("Interrupt time");
n++;
}
#if (_WIN32_WINNT < 0x0600)
#if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
if (version >= 0x0600)
#endif
{
......
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