diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2009-09-22 22:33:14 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2009-09-22 22:33:14 +0930 |
commit | 7ecd413fab7c55918c6f3c4c272b5e8b5aa89aa7 (patch) | |
tree | d6fbca7178cdbe2573f399d0edaaef993c2a9ce1 | |
parent | 605ec22ab5103e16052591517f86fe558133fb8e (diff) |
Add WINVER defines to cairo-mutex-impl-privaye.h
The WINVER defines should always be defined before including windows.h
-rw-r--r-- | src/cairo-mutex-impl-private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-mutex-impl-private.h b/src/cairo-mutex-impl-private.h index 4aeaa869..f601db93 100644 --- a/src/cairo-mutex-impl-private.h +++ b/src/cairo-mutex-impl-private.h @@ -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; |