From e9935704f8b035045d05b912f4f038bfff83a6c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Feb 2013 16:30:35 +0000 Subject: Fix compilation with GCC 4.6. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5038 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/machina/types.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/engine/machina/types.hpp') 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 using SPtr = std::shared_ptr; template using WPtr = std::weak_ptr; +#else +#define SPtr std::shared_ptr +#define WPtr std::weak_ptr +#endif template void NullDeleter(T* ptr) {} -- cgit v1.2.1