diff options
-rw-r--r-- | gi/pyglib-python-compat.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gi/pyglib-python-compat.h b/gi/pyglib-python-compat.h index 5365b208..40e79b42 100644 --- a/gi/pyglib-python-compat.h +++ b/gi/pyglib-python-compat.h @@ -30,9 +30,10 @@ PyCapsule_Import(##module##.##symbol##, FALSE) +#define PYGLIB_MODULE_ERROR_RETURN NULL + /* Compilation on Python 2.x */ #if PY_VERSION_HEX < 0x03000000 -#define PYGLIB_MODULE_ERROR_RETURN #define RO READONLY @@ -113,8 +114,6 @@ PyTypeObject symbol = { \ #else -#define PYGLIB_MODULE_ERROR_RETURN 0 - #define PYGLIB_MODULE_START(symbol, modname) \ static struct PyModuleDef _##symbol##module = { \ PyModuleDef_HEAD_INIT, \ |