diff options
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) {} |