aboutsummaryrefslogtreecommitdiff
path: root/PxShared/include/foundation/PxPreprocessor.h
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-07-03 11:49:08 +0200
committerMarijn Tamis <[email protected]>2017-07-03 11:49:08 +0200
commitcfa944ded7370fb5f22b1fb894ecf6b9bd3f7381 (patch)
tree5cc014922d20561d87105d279b6f7eb3e628c6d9 /PxShared/include/foundation/PxPreprocessor.h
parentFix windows line endings in github. (diff)
downloadnvcloth-1.1.1.tar.xz
nvcloth-1.1.1.zip
NvCloth 1.1.1 Release. (22392725)v1.1.1
Diffstat (limited to 'PxShared/include/foundation/PxPreprocessor.h')
-rw-r--r--PxShared/include/foundation/PxPreprocessor.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/PxShared/include/foundation/PxPreprocessor.h b/PxShared/include/foundation/PxPreprocessor.h
index 446ca76..9b6e0f4 100644
--- a/PxShared/include/foundation/PxPreprocessor.h
+++ b/PxShared/include/foundation/PxPreprocessor.h
@@ -88,7 +88,7 @@ Operating system defines, see http://sourceforge.net/p/predef/wiki/OperatingSyst
#elif defined(__ORBIS__)
#define PX_PS4 1
#elif defined(__NX__)
-#define PX_NX 1
+#define PX_SWITCH 1
#else
#error "Unknown operating system"
#endif
@@ -161,8 +161,8 @@ define anything not defined on this platform to 0
#ifndef PX_PS4
#define PX_PS4 0
#endif
-#ifndef PX_NX
-#define PX_NX 0
+#ifndef PX_SWITCH
+#define PX_SWITCH 0
#endif
#ifndef PX_X64
#define PX_X64 0
@@ -425,7 +425,7 @@ General defines
*/
// static assert
-#if(defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))) || (PX_PS4) || (PX_APPLE_FAMILY) || (PX_NX) || (PX_CLANG && PX_ARM)
+#if(defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))) || (PX_PS4) || (PX_APPLE_FAMILY) || (PX_SWITCH) || (PX_CLANG && PX_ARM)
#define PX_COMPILE_TIME_ASSERT(exp) typedef char PxCompileTimeAssert_Dummy[(exp) ? 1 : -1] __attribute__((unused))
#else
#define PX_COMPILE_TIME_ASSERT(exp) typedef char PxCompileTimeAssert_Dummy[(exp) ? 1 : -1]
@@ -532,5 +532,11 @@ protected:
#define PX_SUPPORT_COMPUTE_PHYSX 0
+#ifndef PX_SUPPORT_EXTERN_TEMPLATE
+#define PX_SUPPORT_EXTERN_TEMPLATE ((!PX_ANDROID) && (PX_VC != 11))
+#else
+#define PX_SUPPORT_EXTERN_TEMPLATE 0
+#endif
+
/** @} */
#endif // #ifndef PXFOUNDATION_PXPREPROCESSOR_H