From 2742cb14ce02354f6c9a2a2a61f793f9a1932924 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 16 Sep 2000 18:57:45 +0000 Subject: 12814: zasprintf --- Src/system.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Src/system.h') diff --git a/Src/system.h b/Src/system.h index 93e82a728..fc85efdb4 100644 --- a/Src/system.h +++ b/Src/system.h @@ -227,6 +227,26 @@ struct timezone { # define zopenmax() ((long) OPEN_MAX) #endif +#if defined (__STDC__) && defined (HAVE_STDARG_H) +# define PREFER_STDARG +# define USE_VARARGS +# include +#else +# ifdef HAVE_VARARGS_H +# define PREFER_VARARGS +# define USE_VARARGS +# include +# endif +#endif + +#ifdef HAVE_ASPRINTF +# ifdef __GNUC__ +# define zasprintf(X,F,A...) asprintf(X,F, ## A) +# else +# define zasprintf asprintf +# endif +#endif + #ifdef HAVE_FCNTL_H # include #else -- cgit 1.4.1