error in bChunk.h with MinGW

comicfans44
Posts: 1
Joined: Mon Apr 26, 2010 2:44 pm

error in bChunk.h with MinGW

Post by comicfans44 »

just like
"error in cl_platform.h with MinGW"
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=4710

not compile when using mingw

at file Extras\Serialize\BulletFileLoader\bChunk.h
near line 20

#ifdef _WIN32
#define long64 __int64
#else
#define long64 long long
#endif

I replace it with

#if defined (_WIN32) && ! defined (__MINGW32__)
#define long64 __int64
#elif defined (__MINGW32__)
#include <stdint.h>
#define long64 int64_t
#else
#define long64 long long
#endif

and it works
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: error in bChunk.h with MinGW

Post by Erwin Coumans »

We don't test using MinGW but are happy to apply this fix to make it work: applied in latest trunk.

Thanks for the feedback!
Erwin