|
ManaPlus
|
Go to the documentation of this file.
22 #ifndef UTILS_BUILDHEX_H
23 #define UTILS_BUILDHEX_H
32 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
33 #ifndef SDL_BIG_ENDIAN
34 #include <SDL_endian.h>
38 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
39 #define buildHex(a, b, c, d) \
40 ((d) * 16777216U + (c) * 65536U + (b) * 256U + CAST_U32(a))
42 #define buildHex(a, b, c, d) \
43 ((a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d))
46 #define buildHexOgl(a, b, c, d) \
47 ((a) * 16777216U + (b) * 65536U + (c) * 256U + CAST_U32(d))