openni/openni-1.3.2.1-silence-assert.patch
s_c_c 3bdfa0837a 增加openni源码包
(cherry picked from commit 18b8c437cbb0ed553f1532e76e5366f7428e4486)
2023-06-08 17:35:53 +08:00

12 lines
375 B
Diff

--- a/Include/Linux-x86/XnPlatformLinux-x86.h
+++ b/Include/Linux-x86/XnPlatformLinux-x86.h
@@ -163,7 +163,7 @@
#define XN_STRINGIFY_HELPER(n) #n
/** Asserts an expression, only on Debug build. */
-#define XN_ASSERT(x)
+#define XN_ASSERT(x) ((void)(x))
//---------------------------------------------------------------------------
// API Export/Import Macros