Skip to content

Commit 2ff2480

Browse files
committed
workaround for python visibility
1 parent d4934a9 commit 2ff2480

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/src/plasma/plasma.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
} \
5252
} while (0);
5353

54+
/// Fix visibility of the Python C extension entry point
55+
#ifdef PyMODINIT_FUNC
56+
#undef PyMODINIT_FUNC
57+
#endif
58+
#define PyMODINIT_FUNC extern "C" __attribute__((visibility ("default"))) PyObject*
59+
5460
/// Allocation granularity used in plasma for object allocation.
5561
#define BLOCK_SIZE 64
5662

0 commit comments

Comments
 (0)