From 78562d38fb9e8079d6e810dc16c3594dc4515932 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 10 May 2026 19:54:36 +0900 Subject: mingw: Include stdio.h for `__MINGW_PRINTF_FORMAT` This macro is not pre-defined but defined in stdio.h. --- include/ruby/internal/attr/format.h | 4 ++++ 1 file changed, 4 insertions(+) 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 /* 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))) -- cgit v1.2.3