Ver Fonte

Fix inability to import panda3d.dtoolconfig

rdb há 10 anos atrás
pai
commit
b71d47b96c
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      dtool/metalibs/dtoolconfig/pydtool.cxx

+ 2 - 0
dtool/metalibs/dtoolconfig/pydtool.cxx

@@ -2489,6 +2489,8 @@ static struct PyModuleDef python_simple_module = {
 
 #ifdef _WIN32
 extern "C" __declspec(dllexport) INIT_FUNC();
+#elif __GNUC__ >= 4
+extern "C" __attribute__((visibility("default"))) INIT_FUNC();
 #else
 extern "C" INIT_FUNC();
 #endif