diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-03 01:05:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-03 01:05:30 +0000 |
commit | 378258bd0b5c98d9752fc2a3e259d7f5d6d7a653 (patch) | |
tree | a769b39379c9c6c4e29bbf67d776193c3aafa67a /missing/vsnprintf.c | |
parent | 5ddbcc5de450eb457343aab0be101ca0795d18d7 (diff) |
* 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
Diffstat (limited to 'missing/vsnprintf.c')
-rw-r--r-- | missing/vsnprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |