From eef5a6f5388b454d9f2646a56847943ccf67eb7b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Sep 2006 11:55:49 +0000 Subject: r18518: we replace snprintf() if its not C99, so we should also add the rep_ prototype in that case (This used to be commit 64b5ff171d04bd93bd41309edfbe532c01a46e4f) --- source4/lib/replace/replace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index ca315131f1..7cdaaae689 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -223,12 +223,12 @@ int rep_dlclose(void *handle); int rep_vasprintf(char **ptr, const char *format, va_list ap); #endif -#ifndef HAVE_SNPRINTF +#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF) #define snprintf rep_snprintf int rep_snprintf(char *,size_t ,const char *, ...) PRINTF_ATTRIBUTE(3,4); #endif -#ifndef HAVE_VSNPRINTF +#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF) #define vsnprintf rep_vsnprintf int rep_vsnprintf(char *,size_t ,const char *, va_list ap); #endif -- cgit