changeset: 5536:bbcf3f979099
user: Stephen J. Turnbull <stephen(a)xemacs.org>
date: Mon Aug 08 13:57:18 2011 +0900
files: src/ChangeLog src/glyphs-eimage.c
description:
Suppress the "undefined macros" warnings for zlib.
diff -r 25325da1d1a8 -r bbcf3f979099 src/ChangeLog
--- a/src/ChangeLog Mon Aug 08 13:57:18 2011 +0900
+++ b/src/ChangeLog Mon Aug 08 13:57:18 2011 +0900
@@ -1,3 +1,9 @@
+2011-08-03 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * glyphs-eimage.c (_LARGEFILE64_SOURCE, _FILE_OFFSET_BITS):
+ Define these macros to suppress GCC warnings caused by excessive
+ zlib magic.
+
2011-08-03 Stephen J. Turnbull <stephen(a)xemacs.org>
* dumper.c (pdump_file_try): Add prototype to suppress GCC warning.
diff -r 25325da1d1a8 -r bbcf3f979099 src/glyphs-eimage.c
--- a/src/glyphs-eimage.c Mon Aug 08 13:57:18 2011 +0900
+++ b/src/glyphs-eimage.c Mon Aug 08 13:57:18 2011 +0900
@@ -59,6 +59,12 @@
BEGIN_C_DECLS
#define message message_ /* Yuck */
+#if !defined(_LARGEFILE64_SOURCE) /* Yuck**2 -- see <zconf.h>. */
+#define _LARGEFILE64_SOURCE 0
+#endif
+#if !defined(_FILE_OFFSET_BITS) /* Yuck**2 -- see <zlib.h>. */
+#define _FILE_OFFSET_BITS 0
+#endif
#include <png.h>
#undef message
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches