physx add pal for openharmony (#297)

* physx add pal for openharmony

* use __OPENHARMONY__
This commit is contained in:
yangchao 2022-09-22 16:16:26 +08:00 committed by GitHub
parent 36d51208ef
commit 986f469ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ Operating system defines, see http://sourceforge.net/p/predef/wiki/OperatingSyst
#define PX_WIN32 1
#elif defined(__ANDROID__)
#define PX_ANDROID 1
#elif defined(__OPENHARMONY__)//openharmony
#define PX_ANDROID 1
#define PX_OPENHARMONY 1
#elif defined(__linux__) || defined (__EMSCRIPTEN__) // note: __ANDROID__ implies __linux__
#define PX_LINUX 1
#elif defined(__APPLE__) && (defined(__arm__) || defined(__arm64__))