Project

General

Profile

Bug #13496 » gnu_printf.patch

MSP-Greg (Greg L), 01/20/2018 04:24 PM

View differences:

configure.ac
[@%:@include <stdio.h>
@%:@include <stddef.h>
@%:@ifdef __GNUC__
@%:@ifdef __MINGW32__
@%:@define PRINTF_ARGS(decl, 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 __attribute__((format(printf, string_index, first_to_check)))
@%:@endif
@%:@else
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl
@%:@endif
include/ruby/defines.h
#endif /* __GNUC__ >= 3 */
#ifdef __GNUC__
#ifdef __MINGW32__
#define PRINTF_ARGS(decl, 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 __attribute__((format(printf, string_index, first_to_check)))
#endif
#else
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
#endif
(2-2/2)