summaryrefslogtreecommitdiff
path: root/extra/pygobject/fix-pycairo-capi-declaration.patch
blob: 1f0364c7aacfd6730a61983aa1f3ef2820d9532d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- pygobject-2.28.4.orig/gi/pygi-foreign-cairo.c	2011-04-18 17:36:47.000000000 +0200
+++ pygobject-2.28.4/gi/pygi-foreign-cairo.c	2011-06-21 20:05:11.015628222 +0200
@@ -26,12 +26,12 @@
 
 #if PY_VERSION_HEX < 0x03000000
 #include <pycairo.h>
+static Pycairo_CAPI_t *Pycairo_CAPI;
 #else
 #include <pycairo/py3cairo.h>
+#define Pycairo_IMPORT import_cairo()
 #endif
 
-Pycairo_CAPI_t *Pycairo_CAPI;
-
 #include "pygi-foreign.h"
 
 #include <pyglib-python-compat.h>