fix box2d compile error in ndk

This commit is contained in:
boyu0 2013-11-25 15:55:01 +08:00
parent e55c81c9b6
commit 805312b3d3
4 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <Box2D/Collision/Shapes/b2EdgeShape.h> #include <Box2D/Collision/Shapes/b2EdgeShape.h>
#include <new> #include <new>
#include <memory.h> #include <memory.h>
#include <string.h>
b2ChainShape::~b2ChainShape() b2ChainShape::~b2ChainShape()
{ {

View File

@ -18,6 +18,7 @@
#include <Box2D/Collision/b2DynamicTree.h> #include <Box2D/Collision/b2DynamicTree.h>
#include <memory.h> #include <memory.h>
#include <string.h>
b2DynamicTree::b2DynamicTree() b2DynamicTree::b2DynamicTree()
{ {

View File

@ -20,6 +20,7 @@
#include <limits.h> #include <limits.h>
#include <memory.h> #include <memory.h>
#include <stddef.h> #include <stddef.h>
#include <string.h>
int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] = int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] =
{ {

View File

@ -20,6 +20,7 @@
#define B2_GROWABLE_STACK_H #define B2_GROWABLE_STACK_H
#include <Box2D/Common/b2Settings.h> #include <Box2D/Common/b2Settings.h>
#include <memory.h> #include <memory.h>
#include <string.h>
/// This is a growable LIFO stack with an initial capacity of N. /// This is a growable LIFO stack with an initial capacity of N.
/// If the stack size exceeds the initial capacity, the heap is used /// If the stack size exceeds the initial capacity, the heap is used