A couple of portability fixes from Joerg Sonnenberger
This commit is contained in:
parent
605fc11462
commit
0373bf6531
@ -35,14 +35,14 @@
|
|||||||
#define ARCHIVE_ENDIAN_H_INCLUDED
|
#define ARCHIVE_ENDIAN_H_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
/* Watcom C++ doesn't support 'inline' in C code. (For any version?) */
|
/*
|
||||||
#if defined( __WATCOMC__ )
|
* Disabling inline keyword for compilers known to choke on it:
|
||||||
#define inline
|
* - Watcom C++ in C code. (For any version?)
|
||||||
#endif
|
* - SGI MIPSpro
|
||||||
|
* - Microsoft Visual C++ 6.0 (supposedly newer versions too)
|
||||||
/* Visual C++ 6.0 doesn't support 'inline' in C code. (Does VC7? VC8?) */
|
*/
|
||||||
#if defined(_MSC_VER)
|
#if defined(__WATCOMC__) || defined(__sgi) || defined(_MSC_VER)
|
||||||
#define inline
|
#define inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */
|
/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user