diff src/glyphs-eimage.c @ 5009:2eec7322eb7f

Miscellaneous small fixes to Windows VS6 build
author Vin Shelton <acs@xemacs.org>
date Tue, 09 Feb 2010 16:25:04 -0500
parents 3c3c1d139863
children 7e57c0575a15
line wrap: on
line diff
--- a/src/glyphs-eimage.c	Mon Feb 08 20:45:21 2010 -0500
+++ b/src/glyphs-eimage.c	Tue Feb 09 16:25:04 2010 -0500
@@ -120,8 +120,15 @@
 #define HAVE_BOOLEAN		/* prevent jmorecfg.h from redefining it */
 #endif
 
+/* Yet more breakage... jmorecfg.h unconditionally defines FAR either as
+   "far" or as blank.  Windef.h unconditionally defines FAR as "far".
+   We'll avoid the compile warning by redefing FAR the way windows defines it,
+   after loading the JPEG headers. */
+#undef FAR
 #include <jpeglib.h>
 #include <jerror.h>
+#undef FAR
+#define FAR far
 
 END_C_DECLS