From c01bf51a753ef381e83efaac207dff1e40e08b59 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 5 Apr 2010 21:40:44 +0000 Subject: [PATCH] + fix --- src/zimlib/include/zim/endian.h | 5 +++++ 1 file changed, 5 insertions(+) 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