This commit is contained in:
kelson42 2010-04-05 21:40:44 +00:00
parent fef93ed3b4
commit c01bf51a75

View File

@ -24,6 +24,9 @@
#include <iostream>
#include <zim/zim.h>
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