Add WINVER defines to cairo-mutex-impl-privaye.h

The WINVER defines should always be defined before including windows.h
This commit is contained in:
Adrian Johnson 2009-09-22 22:33:14 +09:30
parent 605ec22ab5
commit 7ecd413fab

View file

@ -170,6 +170,15 @@
#elif defined(_WIN32) /******************************************************/
#define WIN32_LEAN_AND_MEAN
/* We require Windows 2000 features such as ETO_PDY */
#if !defined(WINVER) || (WINVER < 0x0500)
# define WINVER 0x0500
#endif
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)
# define _WIN32_WINNT 0x0500
#endif
# include <windows.h>
typedef CRITICAL_SECTION cairo_mutex_impl_t;