From 574cadc970c83ec9d1a4780fceb3929ac125173b Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Aug 2010 23:55:49 +0000 Subject: * include/ruby/missing.h, include/ruby/ruby.h (namespace ruby): get rid of name clash on C++. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/ruby.h') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b53f54cd31..72fe91a9e8 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1431,7 +1431,7 @@ unsigned long ruby_strtoul(const char *str, char **endptr, int base); #define InitVM(ext) {void InitVM_##ext(void);InitVM_##ext();} -int ruby_snprintf(char *str, size_t n, char const *fmt, ...); +PRINTF_ARGS(int ruby_snprintf(char *str, size_t n, char const *fmt, ...), 3, 4); int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap); #if defined __GNUC__ && __GNUC__ >= 4 -- cgit v1.2.3