summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-03 16:30:35 +0000
committerDavid Robillard <d@drobilla.net>2013-02-03 16:30:35 +0000
commit92ebdc5a6aa5c779821374c240a47e01718807a3 (patch)
treebf6fa11348f97e166f62099f17c6daf2b019aadd /ingen
parent9ea596c13c1be7718189dae2eebc7e1e0ee390a5 (diff)
downloadingen-92ebdc5a6aa5c779821374c240a47e01718807a3.tar.gz
ingen-92ebdc5a6aa5c779821374c240a47e01718807a3.tar.bz2
ingen-92ebdc5a6aa5c779821374c240a47e01718807a3.zip
Fix compilation with GCC 4.6.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5038 a436a847-0d15-0410-975c-d299462d15a1
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) {}