summaryrefslogtreecommitdiffstats
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-14 11:55:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:41 -0500
commiteef5a6f5388b454d9f2646a56847943ccf67eb7b (patch)
tree7865b8b5f3876edeb0a57aff79f1b1d22262590a /source4/lib/replace/replace.h
parent0541807adfc05a941067fae34bd70b3fe64d7e39 (diff)
downloadsamba-eef5a6f5388b454d9f2646a56847943ccf67eb7b.tar.gz
samba-eef5a6f5388b454d9f2646a56847943ccf67eb7b.tar.xz
samba-eef5a6f5388b454d9f2646a56847943ccf67eb7b.zip
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)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h4
1 files changed, 2 insertions, 2 deletions
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