aboutsummaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 7e2178e93f..2448a92eb4 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -847,6 +847,10 @@ fmt_setup(buf, c, flags, width, prec)
# define u_quad_t unsigned LONG_LONG
# endif
#endif
+#undef vsnprintf
+#undef snprintf
+#define vsnprintf ruby_vsnprintf
+#define snprintf ruby_snprintf
#include "missing/vsnprintf.c"
static int