Annotation of mandoc/test-betoh64.c, Revision 1.1.2.3
1.1.2.1 schwarze 1: #include <sys/types.h>
2:
1.1.2.3 ! schwarze 3: #if defined(__linux__) || defined(__CYGWIN__)
1.1.2.1 schwarze 4: # include <endian.h>
5: #elif defined(__APPLE__)
6: # include <libkern/OSByteOrder.h>
1.1.2.2 schwarze 7: #else
8: # include <sys/endian.h>
1.1.2.1 schwarze 9: #endif
10:
11: int
12: main(int argc, char **argv)
13: {
14: u_int64_t hostorder;
15: u_int64_t bigendian = 1;
16: hostorder = betoh64(bigendian);
17: return 0;
18: }
CVSweb