projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Import mdocml-1.12.2
[dragonfly.git]
/
contrib
/
mdocml
/
test-betoh64.c
1
#include <sys/types.h>
2
3
#if defined(__linux__)
4
# include <endian.h>
5
#elif defined(__APPLE__)
6
# include <libkern/OSByteOrder.h>
7
#else
8
# include <sys/endian.h>
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
}