ruby-changes:16913
From: akr <ko1@a...>
Date: Sun, 8 Aug 2010 07:20:56 +0900 (JST)
Subject: [ruby-changes:16913] Ruby:r28909 (trunk): * include/ruby/subst.h (snprintf): redefinition moved from ruby.h.
akr 2010-08-08 07:19:17 +0900 (Sun, 08 Aug 2010) New Revision: 28909 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28909 Log: * include/ruby/subst.h (snprintf): redefinition moved from ruby.h. (vsnprintf): ditto. Modified files: trunk/ChangeLog trunk/include/ruby/ruby.h trunk/include/ruby/subst.h Index: include/ruby/subst.h =================================================================== --- include/ruby/subst.h (revision 28908) +++ include/ruby/subst.h (revision 28909) @@ -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 Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 28908) +++ include/ruby/ruby.h (revision 28909) @@ -1433,10 +1433,6 @@ 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 28908) +++ ChangeLog (revision 28909) @@ -1,3 +1,8 @@ +Sun Aug 8 07:18:22 2010 Tanaka Akira <akr@f...> + + * include/ruby/subst.h (snprintf): redefinition moved from ruby.h. + (vsnprintf): ditto. + Sun Aug 8 00:41:42 2010 Tanaka Akira <akr@f...> * include/ruby/subst.h: new file for substitute standard functions.. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/