diff --git a/src/base/basictypes.h b/src/base/basictypes.h index 5a25260..ac2d9d6 100644 --- a/src/base/basictypes.h +++ b/src/base/basictypes.h @@ -370,7 +370,7 @@ class AssignAttributeStartEnd { #if defined(HAVE___ATTRIBUTE__) # if (defined(__i386__) || defined(__x86_64__)) # define CACHELINE_ALIGNED __attribute__((aligned(64))) -# elif (defined(__PPC__) || defined(__PPC64__)) +# elif (defined(__PPC__) || defined(__PPC64__) || defined(__ppc__) || defined(__ppc64__)) # define CACHELINE_ALIGNED __attribute__((aligned(16))) # elif (defined(__arm__)) # define CACHELINE_ALIGNED __attribute__((aligned(64))) diff --git a/src/stacktrace_powerpc-inl.h b/src/stacktrace_powerpc-inl.h index 124bc4e..6353210 100644 --- a/src/stacktrace_powerpc-inl.h +++ b/src/stacktrace_powerpc-inl.h @@ -96,7 +96,7 @@ void StacktracePowerPCDummyFunction() { __asm__ volatile(""); } // Do not put globals below. // Load instruction used on top-of-stack get. -#if defined(__PPC64__) || defined(__LP64__) +#if defined(__PPC64__) || defined(__ppc64__) || defined(__LP64__) # define LOAD "ld" #else # define LOAD "lwz"