From 4504df71178fe7a0eb8e7c37fa548b7c853a800f Mon Sep 17 00:00:00 2001 From: Michael Clark Date: Tue, 13 Mar 2007 08:26:20 +0000 Subject: =?UTF-8?q?=20=20*=20printbuf.c=20-=20C.=20Watford=20(christopher?= =?UTF-8?q?=20dot=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Added?= =?UTF-8?q?=20a=20Win32/Win64=20compliant=20implementation=20of=20vasprint?= =?UTF-8?q?f=20=20=20*=20debug.c=20-=20C.=20Watford=20(christopher=20dot?= =?UTF-8?q?=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Removed=20us?= =?UTF-8?q?age=20of=20vsyslog=20on=20Win32/Win64=20systems,=20needs=20to?= =?UTF-8?q?=20be=20handled=20=20=20=20=20by=20a=20configure=20script=20=20?= =?UTF-8?q?=20*=20json=5Fobject.c=20-=20C.=20Watford=20(christopher=20dot?= =?UTF-8?q?=20watford=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20scop?= =?UTF-8?q?e=20operator=20to=20wrap=20usage=20of=20json=5Fobject=5Fobject?= =?UTF-8?q?=5Fforeach,=20this=20=20=20=20=20needs=20to=20be=20rethought=20?= =?UTF-8?q?to=20be=20more=20ANSI=20C=20friendly=20=20=20*=20json=5Fobject.?= =?UTF-8?q?h=20-=20C.=20Watford=20(christopher=20dot=20watford=20at=20gmai?= =?UTF-8?q?l=20dot=20com)=20=20=20=20=20Added=20Microsoft=20C=20friendly?= =?UTF-8?q?=20version=20of=20json=5Fobject=5Fobject=5Fforeach=20=20=20*=20?= =?UTF-8?q?json=5Ftokener.c=20-=20C.=20Watford=20(christopher=20dot=20watf?= =?UTF-8?q?ord=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20a=20Win32/W?= =?UTF-8?q?in64=20compliant=20implementation=20of=20strndup=20=20=20*=20js?= =?UTF-8?q?on=5Futil.c=20-=20C.=20Watford=20(christopher=20dot=20watford?= =?UTF-8?q?=20at=20gmail=20dot=20com)=20=20=20=20=20Added=20cast=20and=20m?= =?UTF-8?q?ask=20to=20suffice=20size=5Ft=20v.=20unsigned=20int=20conversio?= =?UTF-8?q?n=20=20=20=20=20correctness=20=20=20*=20json=5Ftokener.c=20-=20?= =?UTF-8?q?sign=20reversal=20issue=20on=20error=20info=20for=20nested=20ob?= =?UTF-8?q?ject=20parse=20=20=20=20=20spotted=20by=20Johan=20Bj=EF=BF=BDrk?= =?UTF-8?q?lund=20(johbjo09=20at=20kth.se)=20=20=20*=20json=5Fobject.c=20-?= =?UTF-8?q?=20escape=20"=20in=20json=5Fescape=5Fstr=20=20=20*=20Change=20t?= =?UTF-8?q?o=20automake=20and=20libtool=20to=20build=20shared=20and=20stat?= =?UTF-8?q?ic=20library=20=20=20=20=20Michael=20Clark=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@4 327403b1-1117-474d-bef2-5cb71233fd97 --- debug.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index a52e62a..581b76d 100644 --- a/debug.h +++ b/debug.h @@ -1,5 +1,5 @@ /* - * $Id: debug.h,v 1.2 2004/07/21 01:24:33 mclark Exp $ + * $Id: debug.h,v 1.3 2005/06/14 22:41:51 mclark Exp $ * * Copyright Metaparadigm Pte. Ltd. 2004. * Michael Clark @@ -19,7 +19,13 @@ #ifndef _DEBUG_H_ #define _DEBUG_H_ +#include "config.h" + +#if HAVE_STRERROR #define errstr strerror(errno) +#else /* !HAVE_STRERROR */ +#define errstr +#endif /* HAVE_STRERROR */ extern void mc_set_debug(int debug); extern int mc_get_debug(); -- cgit v1.2.1