[cairo] Win32 build

Alexander Larsson alexl at redhat.com
Thu Apr 6 06:50:24 PDT 2006


I couldn't build the current cairo on win32 without the attached patch (or 
something similar) because SHADEBLENDCAPS isn't defined. I'm not sure 
defining WINVER like this is the best thing to do, because I'm not really 
a windows developer, but it makes it work.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a one-legged moralistic cowboy from the Mississippi delta. She's a plucky 
blonde museum curator with a birthmark shaped like Liberty's torch. They fight 
crime! 
-------------- next part --------------
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
old mode 100644
new mode 100755
index 310561a..511f961
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -35,6 +35,11 @@
  *     Vladimir Vukicevic <vladimir at pobox.com>
  */
 
+#ifndef _MSC_VER
+#define _WIN32_WINNT 0x0500
+#define WINVER _WIN32_WINNT
+#endif
+
 #include <stdio.h>
 #include "cairoint.h"
 #include "cairo-win32-private.h"


More information about the cairo mailing list