diff options
| -rw-r--r-- | include/ruby/internal/attr/format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/internal/attr/format.h b/include/ruby/internal/attr/format.h index b3488ee00a..7feff1c846 100644 --- a/include/ruby/internal/attr/format.h +++ b/include/ruby/internal/attr/format.h @@ -22,6 +22,10 @@ */ #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))) |
