e222c04
diff -urN libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-ppc/OniPlatformLinux-PPC.h libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-ppc/OniPlatformLinux-PPC.h
e222c04
--- libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-ppc/OniPlatformLinux-PPC.h	1970-01-01 01:00:00.000000000 +0100
e222c04
+++ libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-ppc/OniPlatformLinux-PPC.h	2014-09-18 11:54:01.405363509 +0200
e222c04
@@ -0,0 +1,41 @@
e222c04
+/*****************************************************************************
e222c04
+*                                                                            *
e222c04
+*  OpenNI 2.x Alpha                                                          *
e222c04
+*  Copyright (C) 2012 PrimeSense Ltd.                                        *
e222c04
+*                                                                            *
e222c04
+*  This file is part of OpenNI.                                              *
e222c04
+*                                                                            *
e222c04
+*  Licensed under the Apache License, Version 2.0 (the "License");           *
e222c04
+*  you may not use this file except in compliance with the License.          *
e222c04
+*  You may obtain a copy of the License at                                   *
e222c04
+*                                                                            *
e222c04
+*      http://www.apache.org/licenses/LICENSE-2.0                            *
e222c04
+*                                                                            *
e222c04
+*  Unless required by applicable law or agreed to in writing, software       *
e222c04
+*  distributed under the License is distributed on an "AS IS" BASIS,         *
e222c04
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
e222c04
+*  See the License for the specific language governing permissions and       *
e222c04
+*  limitations under the License.                                            *
e222c04
+*                                                                            *
e222c04
+*****************************************************************************/
e222c04
+#ifndef _ONI_PLATFORM_LINUX_PPC_H_
e222c04
+#define _ONI_PLATFORM_LINUX_PPC_H_
e222c04
+
e222c04
+// Start with Linux-x86, and override what's different
e222c04
+#include "../Linux-x86/OniPlatformLinux-x86.h"
e222c04
+
e222c04
+//---------------------------------------------------------------------------
e222c04
+// Platform Basic Definition
e222c04
+//---------------------------------------------------------------------------
e222c04
+#undef ONI_PLATFORM
e222c04
+#undef ONI_PLATFORM_STRING
e222c04
+#define ONI_PLATFORM ONI_PLATFORM_LINUX_PPC
e222c04
+#define ONI_PLATFORM_STRING "Linux-PowerPC"
e222c04
+
e222c04
+#if !(defined(__powerpc64__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__))
e222c04
+#undef ONI_PLATFORM_ENDIAN_TYPE
e222c04
+#define ONI_PLATFORM_ENDIAN_TYPE ONI_PLATFORM_IS_BIG_ENDIAN
e222c04
+#endif
e222c04
+
e222c04
+#endif //_ONI_PLATFORM_LINUX_PPC_H_
e222c04
+
e222c04
diff -urN libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-s390/OniPlatformLinux-s390.h libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-s390/OniPlatformLinux-s390.h
e222c04
--- libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-s390/OniPlatformLinux-s390.h	1970-01-01 01:00:00.000000000 +0100
e222c04
+++ libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/Linux-s390/OniPlatformLinux-s390.h	2014-09-18 11:55:06.169556389 +0200
e222c04
@@ -0,0 +1,42 @@
e222c04
+/*****************************************************************************
e222c04
+*                                                                            *
e222c04
+*  OpenNI 2.x Alpha                                                          *
e222c04
+*  Copyright (C) 2012 PrimeSense Ltd.                                        *
e222c04
+*                                                                            *
e222c04
+*  This file is part of OpenNI.                                              *
e222c04
+*                                                                            *
e222c04
+*  Licensed under the Apache License, Version 2.0 (the "License");           *
e222c04
+*  you may not use this file except in compliance with the License.          *
e222c04
+*  You may obtain a copy of the License at                                   *
e222c04
+*                                                                            *
e222c04
+*      http://www.apache.org/licenses/LICENSE-2.0                            *
e222c04
+*                                                                            *
e222c04
+*  Unless required by applicable law or agreed to in writing, software       *
e222c04
+*  distributed under the License is distributed on an "AS IS" BASIS,         *
e222c04
+*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
e222c04
+*  See the License for the specific language governing permissions and       *
e222c04
+*  limitations under the License.                                            *
e222c04
+*                                                                            *
e222c04
+*****************************************************************************/
e222c04
+#ifndef _ONI_PLATFORM_LINUX_s390_H_
e222c04
+#define _ONI_PLATFORM_LINUX_s390_H_
e222c04
+
e222c04
+// Start with Linux-x86, and override what's different
e222c04
+#include "../Linux-x86/OniPlatformLinux-x86.h"
e222c04
+
e222c04
+//---------------------------------------------------------------------------
e222c04
+// Platform Basic Definition
e222c04
+//---------------------------------------------------------------------------
e222c04
+#undef ONI_PLATFORM
e222c04
+#undef ONI_PLATFORM_STRING
e222c04
+#define ONI_PLATFORM ONI_PLATFORM_LINUX_S390
e222c04
+#define ONI_PLATFORM_STRING "Linux-s390"
e222c04
+
e222c04
+#undef ONI_PLATFORM_ENDIAN_TYPE
e222c04
+#define ONI_PLATFORM_ENDIAN_TYPE ONI_PLATFORM_IS_BIG_ENDIAN
e222c04
+
e222c04
+#undef ONI_DEFAULT_MEM_ALIGN
e222c04
+#define ONI_DEFAULT_MEM_ALIGN 8
e222c04
+
e222c04
+#endif //_ONI_PLATFORM_LINUX_s390_H_
e222c04
+
e222c04
diff -urN libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/OniPlatform.h libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/OniPlatform.h
e222c04
--- libfreenect/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/OniPlatform.h	2014-09-18 11:51:35.428923550 +0200
e222c04
+++ libfreenect.new/OpenNI2-FreenectDriver/extern/OpenNI-Linux-x64-2.2.0.33/Include/OniPlatform.h	2014-09-18 11:52:50.242149667 +0200
e222c04
@@ -27,6 +27,8 @@
e222c04
 #define ONI_PLATFORM_LINUX_ARM 3
e222c04
 #define ONI_PLATFORM_MACOSX 4
e222c04
 #define ONI_PLATFORM_ANDROID_ARM 5
e222c04
+#define ONI_PLATFORM_LINUX_PPC 6
e222c04
+#define ONI_PLATFORM_LINUX_S390 7
e222c04
 
e222c04
 #if (defined _WIN32)
e222c04
 #	ifndef RC_INVOKED
e222c04
@@ -41,6 +43,10 @@
e222c04
 #	include "Linux-x86/OniPlatformLinux-x86.h"
e222c04
 #elif (__linux__ && (__arm__ || __aarch64__))
e222c04
 #	include "Linux-Arm/OniPlatformLinux-Arm.h"
e222c04
+#elif (__linux__ && (__powerpc__ || __powerpc64__))
e222c04
+#   include "Linux-ppc/OniPlatformLinux-PPC.h"
e222c04
+#elif (__linux__ && (__s390__ || __s390x__ ))
e222c04
+#   include "Linux-s390/OniPlatformLinux-s390.h"
e222c04
 #elif _ARC
e222c04
 #	include "ARC/OniPlaformARC.h"
e222c04
 #elif (__APPLE__)