json/json.patch

Sat, 01 Sep 2012 12:17:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 01 Sep 2012 12:17:10 +0200
changeset 653
9d74c60eb90e
permissions
-rw-r--r--

Back out attempt to repair gets(3) redefinition and correct rather by
avoiding detection of gets(3) as a method with no macro, otherwise
leading to definition of HAVE_RAW_DECL_GETS and redefition of gets(3)
in lib/stdio.h(.in) caused by 'a split double-inclusion guard' and
a seemingly multiple '#include_next <stdio.h>' reference. Quatch.

     1 Index: zzjson-1.1.0/src/zzjson_parse.c
     2 --- zzjson-1.1.0/src/zzjson_parse.c.orig	2009-08-16 02:49:38 +0200
     3 +++ zzjson-1.1.0/src/zzjson_parse.c	2009-11-18 19:49:55 +0100
     4 @@ -9,6 +9,7 @@
     5  #include <math.h>
     6  #include <stdio.h>
     8 +#undef getchar
     9  #define GETC()          config->getchar(config->ihandle)
    10  #define UNGETC(c)       config->ungetchar(c, config->ihandle)
    11  #define SKIPWS()        skipws(config)

mercurial