fixed #943: Box2d can't be compiled successfully on bada sdk 1.2.1

This commit is contained in:
dumganhar 2012-01-12 11:52:57 +08:00
parent 71177c27f2
commit ad50b3f87e
2 changed files with 11 additions and 2 deletions

View File

@ -22,7 +22,12 @@
#include <Box2D/Collision/Shapes/b2CircleShape.h>
#include <Box2D/Collision/Shapes/b2PolygonShape.h>
#ifdef SHP
#include <stdio.h>
#else
#include <cstdio>
#endif
using namespace std;
int32 b2_toiCalls, b2_toiIters, b2_toiMaxIters;

View File

@ -17,11 +17,15 @@
*/
#include <Box2D/Common/b2Settings.h>
#ifdef SHP
#include <FBaseSys.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#else
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
#ifdef SHP
#include <FBaseSys.h>
#endif