Commits

Ronald Oussoren  committed 57fbe1d

Add visibility attribute to module init, otherwise the module doesn't work with the -O4 build

  • Participants
  • Parent commits 68ccf01

Comments (0)

Files changed (1)

File pyobjc-core/Modules/objc/test/pointersupport.m

 	{ 0, 0, 0, 0 }
 };
 
-#if PY_VERSION_HEX >= 0x03000000
+#if PY_MAJOR_VERSION == 3
 
 static struct PyModuleDef mod_module = {
 	PyModuleDef_HEAD_INIT,
 
 PyObject* PyInit_pointersupport(void);
 
-PyObject*
+PyObject* __attribute__((__visibility__("default")))
 PyInit_pointersupport(void)
 
 #else
 
 void initpointersupport(void);
 
-void
+void __attribute__((__visibility__("default")))
 initpointersupport(void)
 #endif
 {