Files
MINGW-packages/mingw-w64-ruby/0002-use-gnu-printf.patch
2016-02-13 20:32:14 +09:00

12 lines
580 B
Diff

--- ruby-2.3.0/configure.in.orig 2015-12-23 14:29:36.000000000 +0900
+++ ruby-2.3.0/configure.in 2016-02-13 19:58:24.567691100 +0900
@@ -1495,7 +1496,7 @@
@%:@include <stddef.h>
@%:@ifdef __GNUC__
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
- decl __attribute__((format(printf, string_index, first_to_check)))
+ decl __attribute__((format(gnu_printf, string_index, first_to_check)))
@%:@else
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl
@%:@endif