Bug #13496 » gnu_printf.patch
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
|
- « Previous
- 1
- 2
- Next »