Skip to content

Commit 8fba61c

Browse files
committed
gcc-python-pretty-printer: fix GCC 8.3 compatibility
GCC 8.3 eliminated the prefix parameter as well as GCC 9. This patch is based on the diff posted by @doko42 in davidmalcom#173.
1 parent c0db474 commit 8fba61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc-python-pretty-printer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PyGccPrettyPrinter_New(void)
4646
Use placement new to run it on obj->pp. */
4747
new ((void*)&obj->pp)
4848
pretty_printer(
49-
# if (GCC_VERSION < 9000)
49+
# if (GCC_VERSION < 8003)
5050
/* GCC 9 eliminated the "prefix" param. */
5151
NULL,
5252
# endif

0 commit comments

Comments
 (0)