[BACK]Return to test-betoh64.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/test-betoh64.c, Revision 1.1.2.2

1.1.2.1   schwarze    1: #include <sys/types.h>
                      2:
                      3: #if defined(__linux__)
                      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