]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/vfspk3/vfspk3.cpp
some updates to the Linux build system - obtained a core binary and all required...
[xonotic/netradiant.git] / plugins / vfspk3 / vfspk3.cpp
index c4aee9a7d21fcd012f8880750bb00ad4b900446f..dad98feeba0aa4ad487fd41c57c473ccabcd31e0 100644 (file)
@@ -50,19 +50,24 @@ _QERFuncTable_1 g_FuncTable;
 CSynapseServer* g_pSynapseServer = NULL;\r
 CSynapseClientVFS g_SynapseClient;\r
 \r
-extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer)\r
-{\r
-  if (strcmp(version, SYNAPSE_VERSION))\r
-  {\r
+#if __GNUC__ >= 4\r
+#pragma GCC visibility push(default)\r
+#endif\r
+extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) {\r
+#if __GNUC__ >= 4\r
+#pragma GCC visibility pop\r
+#endif\r
+\r
+  if ( strcmp( version, SYNAPSE_VERSION ) ) {\r
     Syn_Printf("ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version);\r
     return NULL;\r
   }\r
   g_pSynapseServer = pServer;\r
   g_pSynapseServer->IncRef();\r
-  Set_Syn_Printf(g_pSynapseServer->Get_Syn_Printf());\r
+  Set_Syn_Printf( g_pSynapseServer->Get_Syn_Printf() );\r
   \r
-  g_SynapseClient.AddAPI(VFS_MAJOR, "pk3", sizeof(_QERFileSystemTable));  \r
-  g_SynapseClient.AddAPI(RADIANT_MAJOR, NULL, sizeof(_QERFuncTable_1), SYN_REQUIRE, &g_FuncTable);\r
+  g_SynapseClient.AddAPI( VFS_MAJOR, "pk3", sizeof( _QERFileSystemTable ) );\r
+  g_SynapseClient.AddAPI( RADIANT_MAJOR, NULL, sizeof( _QERFuncTable_1 ), SYN_REQUIRE, &g_FuncTable );\r
 \r
   return &g_SynapseClient;\r
 }\r