change __linux__ to __unix__

This commit is contained in:
milek7
2019-03-25 20:54:17 +01:00
parent 65eec2ad84
commit 901175f54a
7 changed files with 13 additions and 8 deletions

View File

@@ -131,6 +131,11 @@ auto python_taskqueue::init() -> bool {
Py_SetPythonHome("linuxpython64");
else
Py_SetPythonHome("linuxpython");
#elif __APPLE__
if (sizeof(void*) == 8)
Py_SetPythonHome("macpython64");
else
Py_SetPythonHome("macpython");
#endif
Py_Initialize();
PyEval_InitThreads();