/*
-Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
if( g_pCameraInspectorWnd == NULL )
g_pCameraInspectorWnd = CreateCameraInspectorDialog();
- GetFileTypeRegistry()->addType("camera", "", filetype_t("Camera file", "*.camera"));
+ InitIglToQgl(&g_QglTable);
+
+ GetFileTypeRegistry()->addType("camera", filetype_t("Camera file", "*.camera"));
return "Camera for GtkRadiant";
}
else if( !strcmp( p, "Load Camera..." ) )
DoLoadCamera();
else if( !strcmp( p, "About..." ) )
- g_FuncTable.m_pfnMessageBox( (GtkWidget *)g_pRadiantWnd, PLUGIN_ABOUT, "About", eMB_OK );
+ g_FuncTable.m_pfnMessageBox( (GtkWidget *)g_pRadiantWnd, PLUGIN_ABOUT, "About", MB_OK, NULL );
}
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);