summaryrefslogtreecommitdiff
path: root/lib/Image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Image.cc')
-rw-r--r--lib/Image.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Image.cc b/lib/Image.cc
index a0ece1b..6b698ae 100644
--- a/lib/Image.cc
+++ b/lib/Image.cc
@@ -44,6 +44,9 @@ void Image::SetPixel(unsigned int px, unsigned int py, Color c) {
#ifndef WORDS_BIGENDIAN
#define WORDS_BIGENDIAN 0
+#else
+#undef WORDS_BIGENDIAN
+#define WORDS_BIGENDIAN 1
#endif
bool Image::Prepare(unsigned int f) {