00001 #ifndef SQUID_CONFIG_H
00002 #include "config.h"
00003 #endif
00004
00005 #ifndef _SQUID_STDVARARGS_H
00006 #define _SQUID_STDVARARGS_H
00007
00008
00009
00010
00011
00012
00013 #if defined(HAVE_STDARG_H)
00014 #include <stdarg.h>
00015 #define HAVE_STDARGS
00016 #define VA_LOCAL_DECL va_list ap;
00017 #define VA_START(f) va_start(ap, f)
00018 #define VA_SHIFT(v,t) ;
00019 #define VA_END va_end(ap)
00020 #else
00021 #if defined(HAVE_VARARGS_H)
00022 #include <varargs.h>
00023 #undef HAVE_STDARGS
00024 #define VA_LOCAL_DECL va_list ap;
00025 #define VA_START(f) va_start(ap)
00026 #define VA_SHIFT(v,t) v = va_arg(ap,t)
00027 #define VA_END va_end(ap)
00028 #else
00029 #error XX **NO VARARGS ** XX
00030 #endif
00031 #endif
00032
00033
00034 #if HAVE_SYSLOG_H
00035 #include <syslog.h>
00036 #endif
00037
00038 #endif