X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=plugins%2Fvfspak%2Fvfspak.cpp;h=e97280ac06f2e7dc9abe7db9fe3b4f15c02c561d;hp=832f062432773a426d88cf33c5460315091bc51c;hb=0975f4af11cca8c722f692c09cb69df514284237;hpb=d77fee7551132c642bf2b12e562133936845160c diff --git a/plugins/vfspak/vfspak.cpp b/plugins/vfspak/vfspak.cpp index 832f0624..e97280ac 100644 --- a/plugins/vfspak/vfspak.cpp +++ b/plugins/vfspak/vfspak.cpp @@ -46,8 +46,13 @@ _QERFuncTable_1 g_FuncTable; CSynapseServer* g_pSynapseServer = NULL; CSynapseClientVFS 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); @@ -97,5 +102,3 @@ const char* CSynapseClientVFS::GetName() { return "VFS"; } - -