summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-06-07 17:46:49 (GMT)
committerBrad King <brad.king@kitware.com>2012-06-07 17:46:49 (GMT)
commit54ffb5b4f121084fe368a80d9fa405a5c8254312 (patch)
tree487375970aea2477ef3cad847bbfa272e4000d4d /Utilities
parenteb53bc27733e5762906eb251184df317f1c4664d (diff)
downloadCMake-54ffb5b4f121084fe368a80d9fa405a5c8254312.zip
CMake-54ffb5b4f121084fe368a80d9fa405a5c8254312.tar.gz
CMake-54ffb5b4f121084fe368a80d9fa405a5c8254312.tar.bz2
libarchive: Avoid 'inline' on SunPro < 5.9 (#13277)
Suggested-by: Daniel R. Gomez <gomez@teragram.com>
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_endian.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_endian.h b/Utilities/cmlibarchive/libarchive/archive_endian.h
index c3c78b3..bbf58fd 100644
--- a/Utilities/cmlibarchive/libarchive/archive_endian.h
+++ b/Utilities/cmlibarchive/libarchive/archive_endian.h
@@ -45,11 +45,14 @@
* - 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) || defined(__osf__)
#define inline __inline
#endif