Private
Public Access
2
0

swig: fix usage of SWIGPYTHON for python specific code

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-13 20:55:08 +00:00
parent f7169cc5c5
commit ef225dbe26
5 changed files with 8 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ maa_init()
if (plat != NULL) {
return MAA_ERROR_PLATFORM_ALREADY_INITIALISED;
}
#ifdef SWIG
#ifdef SWIGPYTHON
// Initialise python threads, this allows use to grab the GIL when we are
// required to do so
Py_InitializeEx(0);