blob: f629f7ba925326f94c67244ce2f389091d983e7b [file] [log] [blame]
Will Newton2228c152013-05-26 12:08:16 +00001From 37899eda9563d9134cb5864751b6432cabfaac3e Mon Sep 17 00:00:00 2001
2From: Will Newton <will.newton@linaro.org>
3Date: Tue, 21 May 2013 22:11:05 +0100
4Subject: [PATCH] Foundation/include/Poco/Platform.h: Add support for AArch64.
5
6Add support for big and little endian AArch64 preprocessor defines.
7---
8 Foundation/include/Poco/Platform.h | 8 +++++++-
9 1 file changed, 7 insertions(+), 1 deletion(-)
10
11diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h
12index f34f277..8ddb4cb 100644
13--- a/Foundation/include/Poco/Platform.h
14+++ b/Foundation/include/Poco/Platform.h
15@@ -145,6 +145,7 @@
16 #define POCO_ARCH_S390 0x0c
17 #define POCO_ARCH_SH 0x0d
18 #define POCO_ARCH_NIOS2 0x0e
19+#define POCO_ARCH_AARCH64 0x0f
20
21
22 #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA)
23@@ -207,7 +208,12 @@
24 #else
25 #define POCO_ARCH_BIG_ENDIAN 1
26 #endif
27-
28+#elif defined(__AARCH64EL__)
29+ #define POCO_ARCH POCO_ARCH_AARCH64
30+ #define POCO_ARCH_LITTLE_ENDIAN 1
31+#elif defined(__AARCH64EB__)
32+ #define POCO_ARCH POCO_ARCH_AARCH64
33+ #define POCO_ARCH_BIG_ENDIAN 1
34 #endif
35
36
37--
381.8.1.4
39