]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/eclassfgd/plugin.cpp
Fixing Linux SCons build.
[xonotic/netradiant.git] / plugins / eclassfgd / plugin.cpp
index 035df460b82ada7c60edfad51faec5b32c091cc7..fa8920af18f2153e082dde8a7b035c9df89f24d9 100644 (file)
@@ -135,8 +135,13 @@ const char* EClass_GetExtension()
 CSynapseServer* g_pSynapseServer = NULL;
 CSynapseClientFGD g_SynapseClient;
 
-extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer)
-{
+#if __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) {
+#if __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
   if (strcmp(version, SYNAPSE_VERSION))
   {
     Syn_Printf("ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version);