diff --git a/src/zimlib/include/zim/endian.h b/src/zimlib/include/zim/endian.h index ad2b238..27bf65f 100644 --- a/src/zimlib/include/zim/endian.h +++ b/src/zimlib/include/zim/endian.h @@ -24,6 +24,9 @@ #include #include +namespace zim +{ + /// Returns true, if machine is big-endian (high byte first). /// e.g. PowerPC inline bool isBigEndian() @@ -114,5 +117,7 @@ T fromBigEndian(const T* ptr, bool bigEndian = isBigEndian()) } } +} + #endif // ENDIAN_H