diff options
Diffstat (limited to 'include/ruby/internal/attr/format.h')
| -rw-r--r-- | include/ruby/internal/attr/format.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/internal/attr/format.h b/include/ruby/internal/attr/format.h index fcbf7b6cfe..7feff1c846 100644 --- a/include/ruby/internal/attr/format.h +++ b/include/ruby/internal/attr/format.h @@ -17,11 +17,15 @@ * recursively included from extension libraries written in C++. * Do not expect for instance `__VA_ARGS__` is always available. * We assume C99 for ruby itself but we don't assume languages of - * extension libraries. They could be written in C++98. + * extension libraries. They could be written in C++98. * @brief Defines #RBIMPL_ATTR_FORMAT. */ #include "ruby/internal/has/attribute.h" +#if defined(__MINGW32__) +#include <stdio.h> /* for __MINGW_PRINTF_FORMAT */ +#endif + /** Wraps (or simulates) `__attribute__((format))` */ #if RBIMPL_HAS_ATTRIBUTE(format) # define RBIMPL_ATTR_FORMAT(x, y, z) __attribute__((__format__(x, y, z))) |
