diff options
author | David Robillard <d@drobilla.net> | 2013-02-03 16:30:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-03 16:30:35 +0000 |
commit | e9935704f8b035045d05b912f4f038bfff83a6c6 (patch) | |
tree | 8db60fe7d8c25cde8d070dcdfcedc0f91805b0fc /src/engine/machina/types.hpp | |
parent | d9a7d225e4dd7c4736a834d8d6beaee38e10663f (diff) | |
download | machina-e9935704f8b035045d05b912f4f038bfff83a6c6.tar.gz machina-e9935704f8b035045d05b912f4f038bfff83a6c6.tar.bz2 machina-e9935704f8b035045d05b912f4f038bfff83a6c6.zip |
Fix compilation with GCC 4.6.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5038 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina/types.hpp')
-rw-r--r-- | src/engine/machina/types.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/machina/types.hpp b/src/engine/machina/types.hpp index 38cd29c..fff2601 100644 --- a/src/engine/machina/types.hpp +++ b/src/engine/machina/types.hpp @@ -27,11 +27,16 @@ typedef unsigned char byte; typedef uint32_t URIInt; +#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) {} |