From: Brad King Date: Wed, 21 Oct 2015 15:51:56 +0000 (-0400) Subject: Update 'inline' portability for old IBM and Sun compilers X-Git-Tag: v3.1.900a~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db7019c9321ed43d4804ba8bc1aaca1b866f31a;p=thirdparty%2Flibarchive.git Update 'inline' portability for old IBM and Sun compilers --- diff --git a/libarchive/archive_endian.h b/libarchive/archive_endian.h index 750e190b9..a656405f1 100644 --- a/libarchive/archive_endian.h +++ b/libarchive/archive_endian.h @@ -44,9 +44,15 @@ * - Watcom C++ in C code. (For any version?) * - SGI MIPSpro * - Microsoft Visual C++ 6.0 (supposedly newer versions too) + * - IBM VisualAge 6 (XL v6) + * - Sun WorkShop C (SunPro) before 5.9 */ #if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) || defined(__BORLANDC__) #define inline +#elif defined(__IBMC__) && __IBMC__ < 700 +#define inline +#elif defined(__SUNPRO_C) && __SUNPRO_C < 0x590 +#define inline #elif defined(_MSC_VER) #define inline __inline #endif