mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Fix compile error on Python versions between 3.0.0 and 3.3.3
This commit is contained in:
parent
1bbfc1d9f6
commit
eb4052d7b6
@ -131,6 +131,12 @@ inline PyObject* doPy_RETURN_FALSE()
|
|||||||
typedef long Py_hash_t;
|
typedef long Py_hash_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if PY_MAJOR_VERSION >= 3
|
||||||
|
// Python 3 versions before 3.3.3 defined this incorrectly.
|
||||||
|
#undef _PyErr_OCCURRED
|
||||||
|
#define _PyErr_OCCURRED() (PyThreadState_GET()->curexc_type)
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user