[cairo] WINVER stuff in cairo-win32.h

Carl Worth cworth at cworth.org
Sat Dec 23 00:34:30 PST 2006


I don't know anything about this, but...

As I am rolling up the 1.3.10 snapshot, I noticed the change below in
cairo-win32.h. Is this WINVER stuff only for the benefit of the
cairo-win32-surface.c code? Or is this really required for users of
the install cairo-win32.h header file?

-Carl

commit bf78be63fc35dc13899209ee818f37fe3f564fed
Author: U-JONATHAN-X60S\jonathan <jonathan at Jonathan-X60s.(none)>
Date:   Fri Dec 15 00:48:54 2006 +0100

    Fix a couple of character spacing issues on Windows

diff --git a/src/cairo-win32.h b/src/cairo-win32.h
old mode 100644
new mode 100755
index 8719d33..17d02c5
--- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061223/01a652cb/attachment.pgp


More information about the cairo mailing list