Return to test-betoh64.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / Attic / test-betoh64.c (download)
Revision 1.1.2.3, Thu Aug 14 04:13:30 2014 UTC (10 years, 1 month ago) by schwarze
Cygwin support; from Yaakov Selkowitz, https://sourceforge.net/p/cygwin-ports/mdocml/ci/master/tree/ |
#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; }