summaryrefslogtreecommitdiff
path: root/include
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
commit1cf2bb4b2085758112503e7da7414d1ef52d4f48 (patch)
tree4d368833ae69e551d1dfe8de22ed9d5edfd2eb15 /include
parentfb7a5690771fbf9f103887a86b9d82051cb25876 (diff)
downloadbundler-1cf2bb4b2085758112503e7da7414d1ef52d4f48.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 'include')
-rw-r--r--include/ruby/defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index f5fd5bfcef..b7409a3e6c 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -90,9 +90,9 @@ extern "C" {
#endif /* __GNUC__ >= 3 */
#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)))