Change: Use default NewGRF cargo translation table. (#12646)
[openttd-github.git] / cmake / Endian.cmake
blob3bfba653cad1d360484d1539991c731a28927e3b
1 # Add the definitions to indicate which endian we are building for.
3 # add_endian_definition()
5 function(add_endian_definition)
6     include(TestBigEndian)
7     TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
9     if(IS_BIG_ENDIAN)
10         add_definitions(-DTTD_ENDIAN=TTD_BIG_ENDIAN)
11     else()
12         add_definitions(-DTTD_ENDIAN=TTD_LITTLE_ENDIAN)
13     endif()
14 endfunction()