Commits

Brent Gulanowski  committed 11fd65d

Support for Clang C++0x11

  • Participants
  • Parent commits 93107a9

Comments (0)

Files changed (1)

File library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h

 	using boost::uint32_t;
 #else
 	//We have a decent compiler - use real C++0x features
+#if defined(__clang__)
+	#include <tr1/cstdint>
+	#include <tr1/functional>
+	#include <tr1/memory>
+	#define polyvox_shared_ptr std::tr1::shared_ptr
+	#define polyvox_function std::tr1::function
+#else
 	#include <cstdint>
 	#include <functional>
 	#include <memory>
 	#define polyvox_shared_ptr std::shared_ptr
 	#define polyvox_function std::function
+#endif
 	#define polyvox_bind std::bind
 	#define polyvox_placeholder_1 std::placeholders::_1
 	#define polyvox_placeholder_2 std::placeholders::_2