summaryrefslogtreecommitdiff
path: root/src/cairo-win32.h
diff options
context:
space:
mode:
authorU-JONATHAN-X60S\jonathan <jonathan@Jonathan-X60s.(none)>2006-12-15 00:48:54 +0100
committerU-JONATHAN-X60S\jonathan <jonathan@Jonathan-X60s.(none)>2006-12-15 00:48:54 +0100
commitbf78be63fc35dc13899209ee818f37fe3f564fed (patch)
tree1afb18ed9552f0f28f6de6176f72728a12a7a04c /src/cairo-win32.h
parenta87f494d4b91f3acc78d6d7dd737939633f28d71 (diff)
downloadcairo-bf78be63fc35dc13899209ee818f37fe3f564fed.tar.gz
Fix a couple of character spacing issues on Windows
Diffstat (limited to 'src/cairo-win32.h')
-rwxr-xr-x[-rw-r--r--]src/cairo-win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cairo-win32.h b/src/cairo-win32.h
index 8719d338b..17d02c547 100644..100755
--- a/src/cairo-win32.h
+++ b/src/cairo-win32.h
@@ -40,6 +40,16 @@
#if CAIRO_HAS_WIN32_SURFACE
+#define WIN32_LEAN_AND_MEAN
+/* We require Windows 2000 features. Although we don't use them here, things
+ * should still work if this header file ends up being the one to include
+ * windows.h into a source file, so: */
+#if !defined(WINVER) || (WINVER < 0x0500)
+# define WINVER 0x0500
+#endif
+#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500)
+# define _WIN32_WINNT 0x0500
+#endif
#include <windows.h>
CAIRO_BEGIN_DECLS