Boost is no longer needed if <cstdint> is not found.
This commit is contained in:
parent
5be6a8ba44
commit
161835f42b
@ -107,6 +107,7 @@ SET(IMPL_INC_FILES
|
||||
include/PolyVoxCore/Impl/AStarPathfinderImpl.h
|
||||
include/PolyVoxCore/Impl/Block.h
|
||||
include/PolyVoxCore/Impl/Block.inl
|
||||
include/PolyVoxCore/Impl/CompilerCapabilities.h
|
||||
include/PolyVoxCore/Impl/ErrorHandling.h
|
||||
include/PolyVoxCore/Impl/MarchingCubesTables.h
|
||||
include/PolyVoxCore/Impl/RandomUnitVectors.h
|
||||
|
@ -11,9 +11,9 @@
|
||||
|
||||
//#define HAS_CXX11_CONSTEXPR
|
||||
|
||||
#define HAS_CXX11_STATIC_ASSERT
|
||||
//#define HAS_CXX11_STATIC_ASSERT
|
||||
|
||||
#define HAS_CXX11_CSTDINT_H
|
||||
//#define HAS_CXX11_CSTDINT_H
|
||||
|
||||
#define HAS_CXX11_SHARED_PTR
|
||||
|
||||
|
@ -101,13 +101,12 @@ freely, subject to the following restrictions:
|
||||
#if defined(HAS_CXX11_CSTDINT_H)
|
||||
#include <cstdint>
|
||||
#else
|
||||
#include <boost/cstdint.hpp>
|
||||
using boost::int8_t;
|
||||
using boost::int16_t;
|
||||
using boost::int32_t;
|
||||
using boost::uint8_t;
|
||||
using boost::uint16_t;
|
||||
using boost::uint32_t;
|
||||
typedef signed char int8_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef short int16_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef long int32_t;
|
||||
typedef unsigned long uint32_t;
|
||||
#endif
|
||||
|
||||
#if defined(HAS_CXX11_SHARED_PTR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user