X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FImageIO.cpp;h=689224ea7888a25add17bfe6c56749e48552807b;hb=6f9609cebe4bcb87a7722b628b02a1975c56148c;hp=706c201bce872b7688e790d871a82e8d0837b12b;hpb=0aab437dc560d2afa982e61cc2547756ad7b0761;p=lugaru.git
diff --git a/Source/Utils/ImageIO.cpp b/Source/Utils/ImageIO.cpp
index 706c201..689224e 100644
--- a/Source/Utils/ImageIO.cpp
+++ b/Source/Utils/ImageIO.cpp
@@ -26,7 +26,10 @@ along with Lugaru. If not, see .
#include
#include
#include
-#include
+
+#ifndef WIN32
+#include
+#endif
/* These two are needed for screenshot */
extern int kContextWidth;
@@ -122,7 +125,7 @@ static bool load_jpg(const char* file_name, ImageRec& tex)
(void)jpeg_read_header(&cinfo, TRUE);
cinfo.out_color_space = JCS_RGB;
- cinfo.quantize_colors = 0;
+ cinfo.quantize_colors = FALSE;
(void)jpeg_calc_output_dimensions(&cinfo);
(void)jpeg_start_decompress(&cinfo);