add pragma once to endianness check result
parent
1dcf37c0fc
commit
38b2a6f270
|
@ -21,6 +21,8 @@ int main() {
|
||||||
*testInteger = 0x04030201;
|
*testInteger = 0x04030201;
|
||||||
auto data = reinterpret_cast<std::uint8_t*>(testInteger);
|
auto data = reinterpret_cast<std::uint8_t*>(testInteger);
|
||||||
|
|
||||||
|
std::cout << "#pragma once" << std::endl;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
*data == 0x01 &&
|
*data == 0x01 &&
|
||||||
*(data+1)==0x02 &&
|
*(data+1)==0x02 &&
|
||||||
|
|
Loading…
Reference in New Issue