From 378258bd0b5c98d9752fc2a3e259d7f5d6d7a653 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Aug 2005 01:05:30 +0000 Subject: * configure.in: check vsnprintf() and snprintf(). * sprintf.c, missing/vsnprintf.c: made vsnprintf() and snprintf() private. fixed: [ruby-dev:26651] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/vsnprintf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'missing') diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index 91e7ffb1a4..543f895500 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -1082,6 +1082,7 @@ exponent(p0, exp, fmtch) } #endif /* FLOATING_POINT */ +#ifndef HAVE_VSNPRINTF int vsnprintf(str, n, fmt, ap) char *str; @@ -1102,11 +1103,13 @@ vsnprintf(str, n, fmt, ap) *f._p = 0; return (ret); } +#endif #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)snprintf.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#ifndef HAVE_SNPRINTF int #if defined(HAVE_STDARG_PROTOTYPES) snprintf(char *str, size_t n, char const *fmt, ...) @@ -1138,3 +1141,4 @@ va_dcl va_end(ap); return (ret); } +#endif -- cgit v1.2.1