blob: 90dc84fe3bd4455811569ca982713b01da27b90f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <sys/types.h>
#if defined(__linux__) || defined(__CYGWIN__)
# include <endian.h>
#elif defined(__APPLE__)
# include <libkern/OSByteOrder.h>
#else
# include <sys/endian.h>
#endif
int
main(int argc, char **argv)
{
u_int64_t hostorder;
u_int64_t bigendian = 1;
hostorder = betoh64(bigendian);
return 0;
}
|