Adding defines so that Boost can be used instead of C++0x when pathfinding.

This commit is contained in:
David Williams
2010-12-08 23:24:16 +00:00
parent c9331c3e35
commit cb7180f7d0
3 changed files with 26 additions and 13 deletions

View File

@ -45,6 +45,13 @@ freely, subject to the following restrictions:
#include <boost/smart_ptr.hpp>
#define polyvox_shared_ptr boost::shared_ptr
#include <boost/functional.hpp>
#define polyvox_function boost::function
#include <boost/functional/hash.hpp>
#define polyvox_hash boost::hash
//As long as we're requiring boost, we'll use it to compensate
//for the missing cstdint header too.
#include <boost/cstdint.hpp>
@ -57,8 +64,11 @@ freely, subject to the following restrictions:
#else
//We have a decent compiler - use real C++0x features
#include <cstdint>
#include <functional>
#include <memory>
#define polyvox_shared_ptr std::shared_ptr
#define polyvox_function std::function
#define polyvox_hash std::hash
#endif
#endif