]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Update 'inline' portability for old IBM and Sun compilers
authorBrad King <brad.king@kitware.com>
Wed, 21 Oct 2015 15:51:56 +0000 (11:51 -0400)
committerBrad King <brad.king@kitware.com>
Mon, 26 Oct 2015 12:59:26 +0000 (08:59 -0400)
libarchive/archive_endian.h

index 750e190b9df1331a181d2137225efebbf1d155d9..a656405f104caaf37d5a2f9aecabdea315ba299c 100644 (file)
  * - 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