Files
gentoo/dev-libs/OpenNI/files/betterdefines.patch
Alexis Ballier e85bb7f7d3 dev-libs/OpenNI: solidify ifdefs, otherwise this breaks e.g. pcl
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
2020-05-15 18:33:45 +02:00

17 lines
670 B
Diff

Index: OpenNI-Stable-1.5.7.10/Include/XnPlatform.h
===================================================================
--- OpenNI-Stable-1.5.7.10.orig/Include/XnPlatform.h
+++ OpenNI-Stable-1.5.7.10/Include/XnPlatform.h
@@ -61,9 +61,9 @@
#include "Win32/XnPlatformWin32.h"
#elif defined(ANDROID) && defined(__arm__)
#include "Android-Arm/XnPlatformAndroid-Arm.h"
-#elif (linux && (i386 || __x86_64__))
+#elif (defined(__linux__) && (i386 || __x86_64__))
#include "Linux-x86/XnPlatformLinux-x86.h"
-#elif (linux && __arm__)
+#elif (defined(__linux__) && __arm__)
#include "Linux-Arm/XnPlatformLinux-Arm.h"
#elif _ARC
#include "ARC/XnPlatformARC.h"