]> granicus.if.org Git - curl/commitdiff
curl/system.h: check for __ppc__ as well
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2017 12:39:39 +0000 (14:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Aug 2017 13:32:21 +0000 (15:32 +0200)
... regression since issue #1774 (commit 10b3df10596a) since obviously
some older gcc doesn't know __powerpc__ while some newer doesn't know
__ppc__ ...

Fixes #1797
Closes #1798
Reported-by: Ryan Schmidt
include/curl/system.h

index 043b88bb662dc4b8b1051542890099301c5f120d..df4d283dd028a97df3a87e1556b0c34f2061df5d 100644 (file)
 
 #elif defined(__GNUC__)
 #  if !defined(__LP64__) &&                                             \
-  (defined(__ILP32__) ||                                                \
-   defined(__i386__) || defined(__powerpc__) || defined(__arm__) ||     \
+  (defined(__ILP32__) || defined(__i386__) ||                           \
+   defined(__ppc__) || defined(__powerpc__) || defined(__arm__) ||      \
    defined(__sparc__) || defined(__mips__) || defined(__sh__) ||        \
    defined(__XTENSA__) ||                                               \
    (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4))