Skip to content

Commit 5abc323

Browse files
committed
Allow embedders to customize
1 parent c0e0a83 commit 5abc323

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Include/exports.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@
104104
# endif /* __cplusplus */
105105
#endif
106106

107-
#define PyMODINIT_FUNC _PyINIT_FUNC_DECLSPEC PyObject*
108-
#define PyMODEXPORT_FUNC _PyINIT_FUNC_DECLSPEC PyModuleDef_Slot*
107+
#ifndef PyMODINIT_FUNC
108+
#define PyMODINIT_FUNC _PyINIT_FUNC_DECLSPEC PyObject*
109+
#endif
110+
#ifndef PyMODEXPORT_FUNC
111+
#define PyMODEXPORT_FUNC _PyINIT_FUNC_DECLSPEC PyModuleDef_Slot*
112+
#endif
109113

110114
#endif /* Py_EXPORTS_H */

0 commit comments

Comments
 (0)