PERFORCE change 76326 for review
Robert Watson
rwatson at FreeBSD.org
Sun May 1 12:26:59 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=76326
Change 76326 by rwatson at rwatson_paprika on 2005/05/01 12:26:00
Include stdint.h, as some systems won't have picked up the int
defines as a result of the earlier include of types.h by the code
including endian.h.
Remove gratuitous warning from earlier debuggin.
Affected files ...
.. //depot/projects/trustedbsd/openbsm/compat/endian.h#3 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/compat/endian.h#3 (text+ko) ====
@@ -36,6 +36,12 @@
#include <machine/endian.h>
/*
+ * Some systems will have the uint/int types defined here already, others
+ * will need stdint.h.
+ */
+#include <stdint.h>
+
+/*
* Some operating systems do not yet have the more recent endian APIs that
* permit encoding to and decoding from byte streams. For those systems, we
* implement local non-optimized versions.
@@ -98,7 +104,6 @@
}
#if defined(BYTE_ORDER) && !defined(_BYTE_ORDER)
-#warning "Converting BYTE_ORDER to _BYTE_ORDER"
#define _BYTE_ORDER BYTE_ORDER
#endif
#if !defined(_BYTE_ORDER)
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list