~j-rivero/+junk/ogre-next

« back to all changes in this revision

Viewing changes to debian/patches/riscv64-ppc64-64bits-support.patch

  • Committer: Jose Luis Rivero
  • Date: 2024-02-27 18:01:32 UTC
  • Revision ID: jrivero@osrfoundation.org-20240227180132-s33rd16fly6eaguz
Include ppc64el support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Include riscv64 support and ppc64el support
 
2
Author: Jose Luis Rivero <jrivero@osrfoundation.org>
 
3
Forwarded: no
 
4
Last-Update: 2024-02-10
 
5
---
 
6
--- a/OgreMain/include/OgrePlatform.h
 
7
+++ b/OgreMain/include/OgrePlatform.h
 
8
@@ -76,10 +76,11 @@
 
9
 
 
10
 /* Find the arch type */
 
11
 #if defined(__x86_64__) || defined(_M_X64) || defined(_M_X64) || defined(_M_AMD64) \
 
12
- || defined(__ppc64__) \
 
13
+ || defined(__ppc64__) || defined(__PPC64__) \
 
14
  || defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64) \
 
15
  || defined(__mips64) || defined(__mips64_) \
 
16
- || defined(__alpha__) || defined(__ia64__) || defined(__e2k__) || defined(__s390__) || defined(__s390x__)
 
17
+ || defined(__alpha__) || defined(__ia64__) || defined(__e2k__) || defined(__s390__) || defined(__s390x__) \
 
18
+ || (defined(__riscv) && (__riscv_xlen == 64))
 
19
 #   define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_64
 
20
 #else
 
21
 #   define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_32