2
Tuân thủ tiêu chuẩn của macro C
Tôi có viên ngọc nhỏ này ở đây (ý tưởng bị đánh cắp một cách vô vọng từ C-FAQ): /* A lot of checks omitted to get rid of the architectures with a "weird" endianness */ /*...*/ #define MP_ENDIANESS ( (0x41424344ul == *(uint32_t*)"ABCD") ? MP_BIG_ENDIAN : MP_LITTLE_ENDIAN ) Có tuân …