X-Git-Url: https://deadsoftware.ru/gitweb?p=odcread.git;a=blobdiff_plain;f=reader%2Futil.cc;h=76cd6af8efc712725939a11fd0df084151e79c93;hp=31befb7d1905e98f126ce3d7bbc2b1e54118d38d;hb=df199b16cefe6fcbd9778689a8fd57969389c1bb;hpb=8bb15b1dd0927add217ff8ff4ef4e002dc49bff3 diff --git a/reader/util.cc b/reader/util.cc index 31befb7..76cd6af 100644 --- a/reader/util.cc +++ b/reader/util.cc @@ -1,7 +1,7 @@ -#include "oberon.h" +#include "reader/reader.h" 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(); } }