aboutsummaryrefslogtreecommitdiff
path: root/common/singleton.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/singleton.h')
-rw-r--r--common/singleton.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/singleton.h b/common/singleton.h
index d259102e07..8ea666cbed 100644
--- a/common/singleton.h
+++ b/common/singleton.h
@@ -55,8 +55,12 @@ protected:
~Singleton<T>() { }
};
-template <class T>
-T* Singleton<T>::_singleton=0;
+//TODO: The following poses a problem when building ScummVM with plugins...
+
+//template <class T>
+//T* Singleton<T>::_singleton=0;
+
+#define DECLARE_SINGLETON(T) T* Common::Singleton<T>::_singleton=0
} // End of namespace Common