Fix crash on 32/64-bits Linux with the 2.8.3.3 SDK

This commit is contained in:
rdb 2010-11-17 17:28:14 +00:00
parent 0d12ddf3e9
commit 95b8f46895
2 changed files with 11 additions and 5 deletions

View File

@ -11,7 +11,7 @@
#define COMBINED_SOURCES $[TARGET]_composite.cxx
#define SOURCES \
config_physx.h \
config_physx.h physx_includes.h \
physxActor.I physxActor.h \
physxActorDesc.I physxActorDesc.h \
physxBodyDesc.I physxBodyDesc.h \
@ -265,7 +265,7 @@
physxWheelShapeDesc.cxx \
#define INSTALL_HEADERS \
config_physx.h \
config_physx.h physx_includes.h \
physxActor.I physxActor.h \
physxActorDesc.I physxActorDesc.h \
physxBodyDesc.I physxBodyDesc.h \

View File

@ -15,21 +15,27 @@
#ifndef PHYSX_INCLUDES_H
#define PHYSX_INCLUDES_H
// This one is safe to include
#include "NxVersionNumber.h"
// Platform-specific defines
#if NATIVE_WORDSIZE == 64
#define NX64
#define NX64 1
#endif
#if NATIVE_WORDSIZE == 32
#define NX32
#define NX32 1
#endif
#ifdef IS_LINUX
#define LINUX 1
#define CORELIB 1
#define NX_DISABLE_FLUIDS 1
#define NX_DISABLE_HARDWARE 1
#if NX_SDK_VERSION_NUMBER <= 281
// Defining this in 2.8.3.3 yields a crash.
#error NX_SDK_VERSION_NUMBER
#define NX_DISABLE_FLUIDS 1
#endif
#endif