Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2009 02:17:15 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201085 - head/lib/libarchive
Message-ID:  <200912280217.nBS2HFMT075380@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912280217.nBS2HFMT075380>