From a9f3eb75de7c4041b273cc782585e1b7b20a6fa4 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Nov 2014 03:51:33 +0000 Subject: ruby.h: add mark to PRIsVALUE * include/ruby/ruby.h (PRIsVALUE), vsnprintf.c (BSD_vfprintf): add RUBY_PRI_VALUE_MARK to reduce danger of accidental conflict with plain "%i". binary incompatible with extension libraries using PRIsVALUE and built for 2.1 and earlier. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index 85adc216f3..d370b8d8de 100644 --- a/sprintf.c +++ b/sprintf.c @@ -1253,6 +1253,9 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec) #define FLOATING_POINT 1 #define BSD__dtoa ruby_dtoa #define BSD__hdtoa ruby_hdtoa +#ifdef RUBY_PRI_VALUE_MARK +# define PRI_EXTRA_MARK RUBY_PRI_VALUE_MARK +#endif #include "vsnprintf.c" typedef struct { -- cgit v1.2.3