We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ce1c4 commit b73b362Copy full SHA for b73b362
generate-casts-c.py
@@ -68,8 +68,11 @@ def write_c(registry, c_out):
68
69
c_out.write('#include "cp/cp-tree.h" /* for TFF_* for use by PyGccFunctionDecl_get_fullname */\n')
70
71
- # op_symbol_code moved to tree-pretty-print.h in gcc 4.9
+ c_out.write('/* op_symbol_code moved to tree-pretty-print.h in gcc 4.9\n')
72
+ c_out.write(' but tree-pretty-print.h is only available from 4.7 onwards. */\n')
73
+ c_out.write('#if (GCC_VERSION >= 4009)\n')
74
c_out.write('#include "tree-pretty-print.h"\n')
75
+ c_out.write('#endif\n')
76
77
c_out.write('#include "gcc-c-api/gcc-tree.h"\n')
78
c_out.write('#include "gcc-c-api/gcc-type.h"\n')
0 commit comments