diff options
author | 卜部昌平 <[email protected]> | 2020-02-13 13:33:49 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-02-20 11:46:54 +0900 |
commit | 7aa3f1fe697f03fc38989d72d2decd5037b8882c (patch) | |
tree | 93a5b5d98066bff7f7ddc1c299f1f15051122f24 /compile.c | |
parent | 8920e2040a8980fdceeb9b629b0ef79fac380960 (diff) |
printf can be a macro
Namely glibc has this macro on -DFORTIFY_SOURCE. We have to prevent
macro redefinition with different macro body.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -189,6 +189,7 @@ const ID rb_iseq_shared_exc_local_tbl[] = {idERROR_INFO}; #endif #if CPDEBUG > 1 || CPDEBUG < 0 +#undef printf #define printf ruby_debug_printf #define debugs if (compile_debug_print_indent(1)) ruby_debug_printf #define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs((msg), stderr)), (v)) |