aboutsummaryrefslogtreecommitdiffstats
path: root/tool/m4/ruby_check_printf_prefix.m4
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 08:39:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 08:39:14 +0000
commita9467905d1f0113d66fe40cf49cc4ce24e3df255 (patch)
tree4d368833ae69e551d1dfe8de22ed9d5edfd2eb15 /tool/m4/ruby_check_printf_prefix.m4
parent2599b8b8f570e41ca71cef7c3387210afa06f501 (diff)
downloadruby-a9467905d1f0113d66fe40cf49cc4ce24e3df255.tar.gz
use mingw ANSI stdio
[Bug #13496] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/m4/ruby_check_printf_prefix.m4')
-rw-r--r--tool/m4/ruby_check_printf_prefix.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/m4/ruby_check_printf_prefix.m4 b/tool/m4/ruby_check_printf_prefix.m4
index eab5dbeac6..9007c18c0a 100644
--- a/tool/m4/ruby_check_printf_prefix.m4
+++ b/tool/m4/ruby_check_printf_prefix.m4
@@ -8,9 +8,9 @@ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[
[@%:@include <stdio.h>
@%:@include <stddef.h>
@%:@ifdef __GNUC__
- @%:@ifdef __MINGW32__
+ @%:@if defined __MINGW_PRINTF_FORMAT
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
- decl __attribute__((format(gnu_printf, string_index, first_to_check)))
+ decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check)))
@%:@else
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
decl __attribute__((format(printf, string_index, first_to_check)))