Compatibility: I found some more compilers that don't like 'inline' keyword.

Protection:  Discourage people from using this header outside libarchive.
This commit is contained in:
Tim Kientzle 2009-12-28 02:17:15 +00:00
parent f1bfc23207
commit 1bb8e82188
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201085

View file

@ -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