]> granicus.if.org Git - curl/commitdiff
Revert "curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX"
authorJay Satiro <raysatiro@yahoo.com>
Tue, 2 Jan 2018 20:44:08 +0000 (15:44 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 2 Jan 2018 20:54:33 +0000 (15:54 -0500)
This reverts commit c97648b55080343bb371522bf4233e94a2a13a99.

SIZEOF_LONG should not be checked in system.h since that macro is only
defined when building libcurl.

Ref: https://github.com/curl/curl/pull/2186#issuecomment-354767080
Ref: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

include/curl/system.h

index c49971bf6b48cedd80cb2649c08bd432a3d1008b..39dae754cdb31eda68870b92d1c50e1819725d4a 100644 (file)
    defined(__ppc__) || defined(__powerpc__) || defined(__arm__) ||      \
    defined(__sparc__) || defined(__mips__) || defined(__sh__) ||        \
    defined(__XTENSA__) ||                                               \
-   (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4) ||                \
-   (defined(SIZEOF_LONG) && SIZEOF_LONG == 4))
+   (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4))
 #    define CURL_TYPEOF_CURL_OFF_T     long long
 #    define CURL_FORMAT_CURL_OFF_T     "lld"
 #    define CURL_FORMAT_CURL_OFF_TU    "llu"