#include <string.h>
#include <glib.h>
-extern "C" {
-#include "radiant_jpeglib.h"
-#include "jpeg6/jerror.h"
-}
+#include <jpeglib.h>
+#include <jerror.h>
- /*
- extern "C" {
- #include "radiant_jpeglib.h"
- #include "jpeg6/jerror.h"
- }
- */
#include "image.h"
CSynapseServer* g_pSynapseServer = NULL;
CSynapseClientImage 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);
free(row_pointers);
g_FileSystemTable.m_pfnFreeFile (fbuffer);
}
--
--
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);
{
return "VFS";
}
--
--