From bffacbcb6a2070abcc6f0d5166e24c6d8fe29739 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 11 Jul 2010 08:27:57 +0000 Subject: [PATCH] Basic support for VC++ prior to 2010. --- library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h b/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h index 7f0a0d3e..e1db9f5f 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h +++ b/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h @@ -38,4 +38,14 @@ freely, subject to the following restrictions: #define POLYVOXCORE_API __attribute__ ((visibility("default"))) #endif +// To support non-C++0x compilers we use boost to replace the std::shared_ptr +// and potentially other C++0x features. To use this capability you will need +// to make sure you have boost installed on your system. +#ifdef _MSC_VER + #if _MSC_VER < 1600 // Older than VS 2010 + #include + #define std::shared_ptr boost::shared_ptr + #endif +#endif + #endif