* include/ruby/subst.h (snprintf): redefinition moved from ruby.h.

(vsnprintf): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-08-07 22:19:17 +00:00
parent 3fabdc8e40
commit d82dd262d0
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sun Aug 8 07:18:22 2010 Tanaka Akira <akr@fsij.org>
* include/ruby/subst.h (snprintf): redefinition moved from ruby.h.
(vsnprintf): ditto.
Sun Aug 8 00:41:42 2010 Tanaka Akira <akr@fsij.org>
* include/ruby/subst.h: new file for substitute standard functions..

View File

@ -1433,10 +1433,6 @@ unsigned long ruby_strtoul(const char *str, char **endptr, int base);
int ruby_snprintf(char *str, size_t n, char const *fmt, ...);
int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#undef snprintf
#undef vsnprintf
#define snprintf ruby_snprintf
#define vsnprintf ruby_vsnprintf
#if defined __GNUC__ && __GNUC__ >= 4
#pragma GCC visibility pop

View File

@ -1,6 +1,11 @@
#ifndef RUBY_SUBST_H
#define RUBY_SUBST_H 1
#undef snprintf
#undef vsnprintf
#define snprintf ruby_snprintf
#define vsnprintf ruby_vsnprintf
#ifdef BROKEN_CLOSE
#undef getpeername
#define getpeername ruby_getpeername