Improved the set up of static build, added freetype plugin to plugins that support static usage

This commit is contained in:
Robert Osfield
2007-06-10 09:51:29 +00:00
parent 7ce05f6d9d
commit b48ed1a4d4
6 changed files with 54 additions and 37 deletions

View File

@@ -573,14 +573,9 @@ class RegisterReaderWriterProxy
};
class PluginFunctionProxy
struct PluginFunctionProxy
{
public:
PluginFunctionProxy(CPluginFunction function)
{
(function)();
}
PluginFunctionProxy(CPluginFunction function) { (function)(); }
};
#define USE_OSGPLUGIN(ext) \
@@ -589,7 +584,7 @@ public:
#define REGISTER_OSGPLUGIN(ext, classname) \
extern "C" void osgdb_##ext(void) {} \
static RegisterReaderWriterProxy<classname> g_proxy_##classname;
static osgDB::RegisterReaderWriterProxy<classname> g_proxy_##classname;
}