Python 2.3 wouldn't compile with BGL.

This commit is contained in:
2009-04-09 01:52:29 +00:00
parent 5b0d75e831
commit ba4ad93ead

View File

@@ -1091,7 +1091,7 @@ PyObject *BGL_Init(const char *from)
PyObject *dict= PyModule_GetDict(mod);
PyObject *item;
if( PyType_Ready( &buffer_Type) < 0)
Py_RETURN_NONE;
return NULL; /* should never happen */
#define EXPP_ADDCONST(x) PyDict_SetItemString(dict, #x, item=PyInt_FromLong((int)x)); Py_DECREF(item)