diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-06-03 12:56:41 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-06-03 14:28:51 +0200 |
commit | 19c0575831d4336ddd1f8c57990d88886679937c (patch) | |
tree | 11b979aa2830904f6970eccedb469a6ed00cddda /gtk/decode-jpeg.c | |
parent | 3cafe854f15e66e9554bcdb4533618f8a2bb4a18 (diff) | |
download | spice-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.c | 12 |
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> |