workaround for python visibility

This commit is contained in:
Philipp Moritz committed 2017-07-19 10:06:32 -07:00
1 parent d4934a9d79
commit 2ff24804ea
1 file changed
+6
+6
View File
@@ -51,6 +51,12 @@
} \
} while (0);
/// Fix visibility of the Python C extension entry point
#ifdef PyMODINIT_FUNC
#undef PyMODINIT_FUNC
#endif
#define PyMODINIT_FUNC extern "C" __attribute__((visibility ("default"))) PyObject*
/// Allocation granularity used in plasma for object allocation.
#define BLOCK_SIZE 64