PERFORCE change 133790 for review
Warner Losh
imp at FreeBSD.org
Mon Jan 21 08:24:08 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133790
Change 133790 by imp at imp_paco-paco on 2008/01/21 16:23:19
Make endian.h LOCORE safe.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/include/endian.h#7 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/include/endian.h#7 (text+ko) ====
@@ -34,7 +34,9 @@
#define _MACHINE_ENDIAN_H_
#include <sys/cdefs.h>
+#ifndef _LOCORE
#include <sys/_types.h>
+#endif
#ifdef __cplusplus
extern "C" {
@@ -65,6 +67,7 @@
#define BYTE_ORDER _BYTE_ORDER
#endif
+#ifndef LOCORE
#if defined(__GNUCLIKE_BUILTIN_CONSTANT_P) && defined(__OPTIMIZE__)
#define __is_constant(x) __builtin_constant_p(x)
#else
@@ -134,6 +137,8 @@
#define __htons(x) (__bswap16((x)))
#endif /* _MIPSEB */
+#endif /* LOCORE */
+
#ifdef __cplusplus
}
#endif
More information about the p4-projects
mailing list