+2004-12-23 Jason Rumney <jasonr@gnu.org>
+
+ * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
+ of JPEG library.
+
2004-12-22 Richard M. Stallman <rms@gnu.org>
* emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
#undef HAVE_STDLIB_H
#endif /* HAVE_STLIB_H */
+#if defined (HAVE_NTGUI) && !defined (__WIN32__)
+/* jpeglib.h will define boolean differently depending on __WIN32__,
+ so make sure it is defined. */
+#define __WIN32__ 1
+#endif
+
#include <jpeglib.h>
#include <jerror.h>
#include <setjmp.h>