Fulcrum/config.tests/endian_big/main.cpp
Calin Culianu 70137451f3
Added automatic endian detection to Fulcrum.pro
Relies on some config tests the ultimately rely on clang or gcc compiler
macros.
2022-02-03 17:12:39 -06:00

8 lines
220 B
C++

#if (defined(__clang__) && defined(__BIG_ENDIAN__)) || (defined(__GNUG__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
int main(int, char *[])
{
return 0;
}
#else
static_assert (false, "Must be little endian");
#endif