]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/Singleton.hxx
Revert "Use simgear internal stuff for the singleton class."
[simgear.git] / simgear / structure / Singleton.hxx
index 0c3a59461b516d6d65abf8bde24c161838ec02c8..35c712a28f66c0194f4fec8b8f3c9e26bb1001c2 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef SIMGEAR_SINGLETON_HXX
 #define SIMGEAR_SINGLETON_HXX 1
 
-#include <boost/pool/detail/singleton.hpp>
+#include "singleton.hpp"
 
+#ifndef NO_OPENSCENEGRAPH_INTERFACE
 #include <osg/Referenced>
 #include <osg/ref_ptr>
+#endif
 
 namespace simgear
 {
@@ -27,6 +29,7 @@ public:
     }
 };
 
+#ifndef NO_OPENSCENEGRAPH_INTERFACE
 template <typename RefClass>
 class SingletonRefPtr
 {
@@ -54,5 +57,7 @@ public:
         return SingletonRefPtr<RefClass>::instance();
     }
 };
+#endif // of NO_OPENSCENEGRAPH_INTERFACE
+
 }
 #endif