Origin: https://git.fern.garden/fern/void-packages/commit/
18691bd7d2b7e3c8e67d9fbbc254a20cffb4b19d
Bug: https://github.com/gogglesmm/gogglesmm/issues/118
Last-Update: 2024-05-23
Fix compiling on Big Endian Architectures.
Last-Update: 2024-05-23
Gbp-Pq: Name bigendian.diff
#define MSB_UINT(x) ((x)[3]) | ((x)[2]<<8) | ((x)[1]<<16) | ((x)[0]<<24)
#define MSB_SHORT(x) ((x)[0]<<8) | ((x)[1])
#else
-#define MSB_UINT(data) (data[0]) | (data[1]<<8) | (data[2]<<16) | (data[3]<<24)
-#define MSB_SHORT(data) (data[1]<<8) | (data[0])
+#define MSB_UINT(x) ((x)[0]) | ((x)[1]<<8) | ((x)[2]<<16) | ((x)[3]<<24)
+#define MSB_SHORT(x) ((x)[1]<<8) | ((x)[0])
#endif