File pretty_printer.patch of Package gcc-python-plugin
From 8fba61cd0d6c6bb7a95176e7b8915c5b81cf50a9 Mon Sep 17 00:00:00 2001
From: Jack Rosenthal <jack@rosenth.al>
Date: Tue, 28 May 2019 19:30:42 -0600
Subject: [PATCH] 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.
---
gcc-python-pretty-printer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc-python-pretty-printer.c b/gcc-python-pretty-printer.c
index be56854b..73f8f414 100644
--- a/gcc-python-pretty-printer.c
+++ b/gcc-python-pretty-printer.c
@@ -46,7 +46,7 @@ PyGccPrettyPrinter_New(void)
Use placement new to run it on obj->pp. */
new ((void*)&obj->pp)
pretty_printer(
-# if (GCC_VERSION < 9000)
+# if (GCC_VERSION < 8003)
/* GCC 9 eliminated the "prefix" param. */
NULL,
# endif