summaryrefslogtreecommitdiffstats
path: root/gtk/decode-jpeg.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-06-03 12:56:41 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2011-06-03 14:28:51 +0200
commit19c0575831d4336ddd1f8c57990d88886679937c (patch)
tree11b979aa2830904f6970eccedb469a6ed00cddda /gtk/decode-jpeg.c
parent3cafe854f15e66e9554bcdb4533618f8a2bb4a18 (diff)
downloadspice-gtk-19c0575831d4336ddd1f8c57990d88886679937c.tar.gz
spice-gtk-19c0575831d4336ddd1f8c57990d88886679937c.tar.xz
spice-gtk-19c0575831d4336ddd1f8c57990d88886679937c.zip
build: fix windows build with recent mingw64
Diffstat (limited to 'gtk/decode-jpeg.c')
-rw-r--r--gtk/decode-jpeg.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/decode-jpeg.c b/gtk/decode-jpeg.c
index 5b65927..e4898c7 100644
--- a/gtk/decode-jpeg.c
+++ b/gtk/decode-jpeg.c
@@ -18,10 +18,14 @@
#include "decode.h"
#ifdef WIN32
-/* We need some hacks to avoid warnings from the jpeg headers */
-#define HAVE_BOOLEAN
-#define XMD_H
-#undef FAR
+/* We need some hacks to avoid warnings from the jpeg headers, ex: */
+/* #define HAVE_BOOLEAN */
+/* #define XMD_H */
+/* #undef FAR */
+/* but they are not compatible: uchar vs int........!@@(#$$??!@! */
+/* fix this with UGLY HACK! */
+#define boolean spice_jpeg_boolean
+#define INT32 spice_jpeg_int32
#endif
#include <stdio.h>