summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-14 11:55:49 +0000
committerAndrew Tridgell <tridge@samba.org>2006-09-14 11:55:49 +0000
commit2236500778294c329fea828457f320b59b4c1ffa (patch)
treee6f071f94291418fb136f87f23123030341611d6 /source/lib
parente44592bf02786cd8233f6aa64cc247b11abb7037 (diff)
downloadsamba-2236500778294c329fea828457f320b59b4c1ffa.tar.gz
samba-2236500778294c329fea828457f320b59b4c1ffa.tar.xz
samba-2236500778294c329fea828457f320b59b4c1ffa.zip
r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/replace/replace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h
index ca315131f11..7cdaaae6896 100644
--- a/source/lib/replace/replace.h
+++ b/source/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