# HG changeset patch # User Stephen J. Turnbull # Date 1312779438 -32400 # Node ID bbcf3f979099bc64a08e851ef7011b424c7e4f95 # Parent 25325da1d1a840c3738ac2d1f2703cdb0f2c7a30 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 + + * 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 * 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 . */ +#define _LARGEFILE64_SOURCE 0 +#endif +#if !defined(_FILE_OFFSET_BITS) /* Yuck**2 -- see . */ +#define _FILE_OFFSET_BITS 0 +#endif #include #undef message