summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
Diffstat (limited to 'ingen')
-rw-r--r--ingen/types.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ingen/types.hpp b/ingen/types.hpp
index ab80f94f..0f0fe718 100644
--- a/ingen/types.hpp
+++ b/ingen/types.hpp
@@ -21,11 +21,16 @@
namespace Ingen {
+#if __cplusplus >= 201103L
template <class T>
using SPtr = std::shared_ptr<T>;
template <class T>
using WPtr = std::weak_ptr<T>;
+#else
+#define SPtr std::shared_ptr
+#define WPtr std::weak_ptr
+#endif
template <class T>
void NullDeleter(T* ptr) {}