svn commit: r201085 - head/lib/libarchive
Tim Kientzle
kientzle at FreeBSD.org
Mon Dec 28 02:17:15 UTC 2009
Author: kientzle
Date: Mon Dec 28 02:17:15 2009
New Revision: 201085
URL: http://svn.freebsd.org/changeset/base/201085
Log:
Compatibility: I found some more compilers that don't like 'inline' keyword.
Protection: Discourage people from using this header outside libarchive.
Modified:
head/lib/libarchive/archive_endian.h
Modified: head/lib/libarchive/archive_endian.h
==============================================================================
--- head/lib/libarchive/archive_endian.h Mon Dec 28 02:14:09 2009 (r201084)
+++ head/lib/libarchive/archive_endian.h Mon Dec 28 02:17:15 2009 (r201085)
@@ -28,6 +28,10 @@
* Borrowed from FreeBSD's <sys/endian.h>
*/
+#ifndef __LIBARCHIVE_BUILD
+#error This header is only to be used internally to libarchive.
+#endif
+
/* Note: This is a purely internal header! */
/* Do not use this outside of libarchive internal code! */
@@ -41,7 +45,7 @@
* - SGI MIPSpro
* - Microsoft Visual C++ 6.0 (supposedly newer versions too)
*/
-#if defined(__WATCOMC__) || defined(__sgi)
+#if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) || defined(__BORLANDC__)
#define inline
#elif defined(_MSC_VER)
#define inline __inline
More information about the svn-src-head
mailing list