svn commit: r185674 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Fri Dec 5 22:12:25 PST 2008


Author: kientzle
Date: Sat Dec  6 06:12:24 2008
New Revision: 185674
URL: http://svn.freebsd.org/changeset/base/185674

Log:
  A couple of portability fixes from Joerg Sonnenberger

Modified:
  head/lib/libarchive/archive_endian.h

Modified: head/lib/libarchive/archive_endian.h
==============================================================================
--- head/lib/libarchive/archive_endian.h	Sat Dec  6 06:08:12 2008	(r185673)
+++ head/lib/libarchive/archive_endian.h	Sat Dec  6 06:12:24 2008	(r185674)
@@ -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. */


More information about the svn-src-all mailing list