]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/camera/camera.cpp
Backing out commit 483. Going to set linker flags instead.
[xonotic/netradiant.git] / contrib / camera / camera.cpp
index 40dfa9459c6203d1566a1a4fa68988580fa5e674..dbad80853f8edf6962210cd0909399fd35051f6c 100644 (file)
@@ -184,8 +184,13 @@ public:
 CSynapseServer* g_pSynapseServer = NULL;
 CameraSynapseClient 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);