Do not perform endianness check on Windows and Apple
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
index b5c94d5..c79b5c1 100644
--- a/vncviewer/PlatformPixelBuffer.cxx
+++ b/vncviewer/PlatformPixelBuffer.cxx
@@ -34,7 +34,12 @@
 static rfb::LogWriter vlog("PlatformPixelBuffer");
 
 PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) :
-  FullFramePixelBuffer(rfb::PixelFormat(32, 24, ImageByteOrder(fl_display) == MSBFirst,
+  FullFramePixelBuffer(rfb::PixelFormat(32, 24,
+#if !defined(WIN32) && !defined(__APPLE__)
+                                        ImageByteOrder(fl_display) == MSBFirst,
+#else
+                                        false,
+#endif
                                         true, 255, 255, 255, 16, 8, 0),
                        width, height, 0, stride),
   Surface(width, height)