|
From: Tapio V. <aa...@us...> - 2009-12-11 12:44:57
|
Module: performous
Branch: dance
Commit: 97663ba0d761e887a845644ebb5aef108de07dda
Author: Lasse Karkkainen <tro...@tr...>
Date: Thu Dec 3 22:37:39 2009 +0200
Testing another approach for plugin framework (hopefully making it work on Windows)
---
libs/plugin++/include/plugin++/plugin.hpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libs/plugin++/include/plugin++/plugin.hpp b/libs/plugin++/include/plugin++/plugin.hpp
index 1258481..7edc2e6 100644
--- a/libs/plugin++/include/plugin++/plugin.hpp
+++ b/libs/plugin++/include/plugin++/plugin.hpp
@@ -57,10 +57,14 @@ namespace plugin {
// being a static member variable of this class to ensure that it gets
// initialized when it is used the first time. If it were static member,
// the initialization (on program startup) might occur too late.
- static map_t& map() {
+#ifdef PLUGIN_MASTER
+ static map_t& PLUGIN_REGISTRY_API map() {
static map_t m;
return m;
}
+#else
+ static map_t& PLUGIN_REGISTRY_API map();
+#endif
public:
/** An iterator for browsing the available keys. **/
class iterator:
|