Mercurial > hg > xemacs-beta
changeset 5536:bbcf3f979099
Suppress the "undefined macros" warnings for zlib.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Mon, 08 Aug 2011 13:57:18 +0900 |
parents | 25325da1d1a8 |
children | 2df2d9171f20 |
files | src/ChangeLog src/glyphs-eimage.c |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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@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@xemacs.org> * dumper.c (pdump_file_try): Add prototype to suppress GCC warning.
--- 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