X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=reader%2Futil.cc;h=0d53e11c5b3d5476ae86d850d7cd4a8f79af6d5c;hb=816241afc2a91e54e86b4534ce5264f11d229dc6;hp=31befb7d1905e98f126ce3d7bbc2b1e54118d38d;hpb=8bb15b1dd0927add217ff8ff4ef4e002dc49bff3;p=odcread.git diff --git a/reader/util.cc b/reader/util.cc index 31befb7..0d53e11 100644 --- a/reader/util.cc +++ b/reader/util.cc @@ -1,7 +1,7 @@ -#include "oberon.h" +#include "reader/module.ih" namespace odc { - bool isBigEndian() { // http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program + bool Reader::isBigEndian() { // http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program union { uint32_t i; uint8_t c[4]; @@ -9,7 +9,7 @@ namespace odc { return test.c[0] == 1; } - bool isLittleEndian() { + bool Reader::isLittleEndian() { return !isBigEndian(); } }