svn commit: samba r18518 - in branches/SAMBA_4_0/source/lib/replace: .

tridge at samba.org tridge at samba.org
Thu Sep 14 11:55:50 GMT 2006


Author: tridge
Date: 2006-09-14 11:55:49 +0000 (Thu, 14 Sep 2006)
New Revision: 18518

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18518

Log:

we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case

Modified:
   branches/SAMBA_4_0/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-14 11:47:13 UTC (rev 18517)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h	2006-09-14 11:55:49 UTC (rev 18518)
@@ -223,12 +223,12 @@
 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



More information about the samba-cvs mailing list