mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Fixed compiling Box2D on some platforms (memory.h doesn't exist in every build environment)
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#include <Box2D/Collision/Shapes/b2ChainShape.h>
|
#include <Box2D/Collision/Shapes/b2ChainShape.h>
|
||||||
#include <Box2D/Collision/Shapes/b2EdgeShape.h>
|
#include <Box2D/Collision/Shapes/b2EdgeShape.h>
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <memory.h>
|
#include <string.h>
|
||||||
|
|
||||||
b2ChainShape::~b2ChainShape()
|
b2ChainShape::~b2ChainShape()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Box2D/Collision/b2BroadPhase.h>
|
#include <Box2D/Collision/b2BroadPhase.h>
|
||||||
#include <memory.h>
|
#include <string.h>
|
||||||
|
|
||||||
b2BroadPhase::b2BroadPhase()
|
b2BroadPhase::b2BroadPhase()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Box2D/Collision/b2DynamicTree.h>
|
#include <Box2D/Collision/b2DynamicTree.h>
|
||||||
#include <memory.h>
|
#include <string.h>
|
||||||
|
|
||||||
b2DynamicTree::b2DynamicTree()
|
b2DynamicTree::b2DynamicTree()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <Box2D/Common/b2BlockAllocator.h>
|
#include <Box2D/Common/b2BlockAllocator.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <memory.h>
|
#include <string.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] =
|
int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] =
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#ifndef B2_GROWABLE_STACK_H
|
#ifndef B2_GROWABLE_STACK_H
|
||||||
#define B2_GROWABLE_STACK_H
|
#define B2_GROWABLE_STACK_H
|
||||||
#include <Box2D/Common/b2Settings.h>
|
#include <Box2D/Common/b2Settings.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
|
||||||
|
|||||||
Reference in New Issue
Block a user