diff options
Diffstat (limited to 'src/core/endian_type.hpp')
-rw-r--r-- | src/core/endian_type.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/endian_type.hpp b/src/core/endian_type.hpp index ad0b814c6..dbb7faec6 100644 --- a/src/core/endian_type.hpp +++ b/src/core/endian_type.hpp @@ -13,12 +13,16 @@ #define ENDIAN_TYPE_HPP #if defined(ARM) || defined(__arm__) || defined(__alpha__) + /** The architecture requires aligned access. */ #define OTTD_ALIGNMENT 1 #else + /** The architecture does not require aligned access. */ #define OTTD_ALIGNMENT 0 #endif +/** Little endian builds use this for TTD_ENDIAN. */ #define TTD_LITTLE_ENDIAN 0 +/** Big endian builds use this for TTD_ENDIAN. */ #define TTD_BIG_ENDIAN 1 /* Windows has always LITTLE_ENDIAN */ |