Module Name: src
Committed By: christos
Date: Fri Jun 19 15:24:18 UTC 2009
Modified Files:
src/sys/sys: bswap.h
Log Message:
don't use the gcc-specific macros if lint.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/sys/bswap.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/bswap.h
diff -u src/sys/sys/bswap.h:1.13 src/sys/sys/bswap.h:1.14
--- src/sys/sys/bswap.h:1.13 Fri Jun 27 18:19:43 2008
+++ src/sys/sys/bswap.h Fri Jun 19 11:24:17 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: bswap.h,v 1.13 2008/06/27 22:19:43 mlelstv Exp $ */
+/* $NetBSD: bswap.h,v 1.14 2009/06/19 15:24:17 christos Exp $ */
/* Written by Manuel Bouyer. Public domain */
@@ -23,7 +23,7 @@
uint64_t bswap64(uint64_t) __attribute__((__const__));
__END_DECLS
-#if defined(__GNUC__) && defined(__OPTIMIZE__)
+#if defined(__GNUC__) && defined(__OPTIMIZE__) && !defined(__lint__)
/* machine/byte_swap.h might have defined inline versions */
#ifndef __BYTE_SWAP_U64_VARIABLE