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 | cd0141cc2690a6953c4cda7b6d26f13ce286f3ae (patch) | |
tree | a769b39379c9c6c4e29bbf67d776193c3aafa67a /missing/vsnprintf.c | |
parent | 9c98a23f732f34690ad15e7cf0151a5409faff12 (diff) | |
download | ruby-cd0141cc2690a6953c4cda7b6d26f13ce286f3ae.tar.gz ruby-cd0141cc2690a6953c4cda7b6d26f13ce286f3ae.tar.xz ruby-cd0141cc2690a6953c4cda7b6d26f13ce286f3ae.zip |
* configure.in: check vsnprintf() and snprintf().
* sprintf.c, missing/vsnprintf.c: made vsnprintf() and snprintf()
private. fixed: [ruby-dev:26651]
git-svn-id: http://svn.ruby-lang.org/repos/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 91e7ffb1a..543f89550 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 |