haiku/headers/build/host/mingw/endian.h
Augustin Cavalier 807304b100 build: Add basic support for MinGW hosts.
This doesn't fully work yet (the FS code in libroot_build
needs to be adapted, as some of the symlink-related calls
are not available on MinGW), but it gets much further than
the "Cygwin" target did.
2018-11-23 16:24:25 -05:00

16 lines
313 B
C

#ifndef _HAIKU_BUILD_COMPATIBILITY_MINGW_ENDIAN
#define _HAIKU_BUILD_COMPATIBILITY_MINGW_ENDIAN
// There's no <endian.h> in MinGW.
#include <sys/param.h>
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#define __BYTE_ORDER BYTE_ORDER
#endif // _HAIKU_BUILD_COMPATIBILITY_MINGW_ENDIAN