summaryrefslogtreecommitdiff
path: root/src/ppc32
diff options
context:
space:
mode:
authorStephen Webb <swebb@blackberry.com>2020-06-11 17:52:49 -0400
committerDave Watson <dade.watson@gmail.com>2020-06-18 13:42:19 -0700
commit12e70a59df9a2e1c436c79c1dba941ca555db843 (patch)
treed0f9cc95ba9c54d22f8de5fbbf731f076ebadd5c /src/ppc32
parent77dfbd60e715399f06b3e823fdffa5d9c658caf2 (diff)
downloadlibunwind-12e70a59df9a2e1c436c79c1dba941ca555db843.tar.gz
Rationalize endianness macros
Extend the endianness macros to support systems that define them in <sys/param.h> and replace the use of names that violate ISO/IEC 9899. Rename endianness macros used in code to use properly-namespaced macros for portability and cross-hosting compatibility. Add inline functions to perform common operations with the macros.
Diffstat (limited to 'src/ppc32')
-rw-r--r--src/ppc32/Gcreate_addr_space.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppc32/Gcreate_addr_space.c b/src/ppc32/Gcreate_addr_space.c
index aaa68bb3..0418f18f 100644
--- a/src/ppc32/Gcreate_addr_space.c
+++ b/src/ppc32/Gcreate_addr_space.c
@@ -40,7 +40,7 @@ unw_create_addr_space (unw_accessors_t *a, int byte_order)
/*
* We support only big-endian on Linux ppc32.
*/
- if (byte_order != 0 && byte_order != __BIG_ENDIAN)
+ if (byte_order != 0 && byte_order != UNW_BIG_ENDIAN)
return NULL;
as = malloc (sizeof (*as));