Skip to content

Commit

Permalink
Fix powerpc detection on AIX (gcc)
Browse files Browse the repository at this point in the history
GCC/powerpc-ibm-aix does not define any of __powerpc__, __ppc__,
__PPC__, __powerpc64__, __ppc64__; but it does define _ARCH_PPC (and
_POWER).

* src/atomic_ops.h [_ARCH_PPC]: Include gcc/powerpc.h.
ivmai/libatomic_ops@b6bfe95
Author: Tobias Leich <email@froggs.de>
Date:   Fri Nov 18 01:05:42 2016 +0300
  • Loading branch information
FROGGS committed Nov 19, 2016
1 parent e9df523 commit c951297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 3rdparty/libatomic_ops/src/atomic_ops.h
Expand Up @@ -266,7 +266,8 @@
# include "atomic_ops/sysdeps/gcc/nios2.h"
# endif /* __nios2__ */
# if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \
|| defined(__powerpc64__) || defined(__ppc64__)
|| defined(__powerpc64__) || defined(__ppc64__) \
|| defined(_ARCH_PPC)
# include "atomic_ops/sysdeps/gcc/powerpc.h"
# endif /* __powerpc__ */
# if defined(__aarch64__)
Expand Down

0 comments on commit c951297

Please sign in to comment.