A couple of portability fixes from Joerg Sonnenberger

This commit is contained in:
Tim Kientzle 2008-12-06 06:12:24 +00:00
parent 605fc11462
commit 0373bf6531
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185674

View File

@ -35,14 +35,14 @@
#define ARCHIVE_ENDIAN_H_INCLUDED
/* Watcom C++ doesn't support 'inline' in C code. (For any version?) */
#if defined( __WATCOMC__ )
#define inline
#endif
/* Visual C++ 6.0 doesn't support 'inline' in C code. (Does VC7? VC8?) */
#if defined(_MSC_VER)
#define inline
/*
* Disabling inline keyword for compilers known to choke on it:
* - Watcom C++ in C code. (For any version?)
* - SGI MIPSpro
* - Microsoft Visual C++ 6.0 (supposedly newer versions too)
*/
#if defined(__WATCOMC__) || defined(__sgi) || defined(_MSC_VER)
#define inline
#endif
/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */