Fri, 13 Apr 2012 18:48:23 +0200
Correct various structure and architecture problems in code including:
use functions from ISO C stdio requires cstdio header,
include sockio header only in platforms where it's present,
touch random number seeder logic on X86-64 platforms as well as IA-32,
and hopefully use all 64 bits of register as it would seem that more
like 'asm("rdtsc" : "=a" (lowtick), "=d" (hitick));' is needed instead.
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)