More C++0x support stuff.
This commit is contained in:
@ -4,13 +4,27 @@
|
||||
#ifdef C_PLUS_PLUS_ZERO_X_SUPPORTED
|
||||
#include <shared_ptr> //Just a guess at what the standard name will be.
|
||||
#include <weak_ptr> //These includes may need changing
|
||||
|
||||
#define POLYVOX_STD_NAMESPACE std
|
||||
#define POLYVOX_SHARED_PTR std::shared_ptr
|
||||
#define POLYVOX_WEAK_PTR std::weak_ptr
|
||||
#else
|
||||
#include "boost/shared_ptr.hpp"
|
||||
#include "boost/weak_ptr.hpp"
|
||||
|
||||
#define POLYVOX_STD_NAMESPACE boost
|
||||
#define POLYVOX_SHARED_PTR boost::shared_ptr
|
||||
#define POLYVOX_WEAK_PTR boost::weak_ptr
|
||||
#endif
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
typedef char int8;
|
||||
typedef short int16;
|
||||
typedef long int32;
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned short uint16;
|
||||
typedef unsigned long uint32;
|
||||
}
|
||||
|
||||
#endif
|
@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
||||
#include "PolyVoxCore/TypeDef.h"
|
||||
|
||||
#include "PolyVoxCore/PolyVoxCStdInt.h"
|
||||
#include "CPlusPlusZeroXSupport.h"
|
||||
#pragma endregion
|
||||
|
||||
namespace PolyVox
|
||||
|
@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
||||
#include "PolyVoxCore/TypeDef.h"
|
||||
|
||||
#include "PolyVoxCore/PolyVoxCStdInt.h"
|
||||
#include "CPlusPlusZeroXSupport.h"
|
||||
#pragma endregion
|
||||
|
||||
namespace PolyVox
|
||||
|
@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
||||
#include "PolyVoxCore/TypeDef.h"
|
||||
|
||||
#include "PolyVoxCore/PolyVoxCStdInt.h"
|
||||
#include "CPlusPlusZeroXSupport.h"
|
||||
#pragma endregion
|
||||
|
||||
#include <vector>
|
||||
|
Reference in New Issue
Block a user