Remove unneeded Python includes
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 25 Nov 2021 13:19:22 +0000 (14:19 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 25 Nov 2021 13:19:22 +0000 (14:19 +0100)
Inluding <compile.h> and <eval.h> has not been necessary since Python
2.4, since they are included via <Python.h>.  Morever, <eval.h> is
being removed in Python 3.11.  So remove these includes.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/84884.1637723223%40sss.pgh.pa.us

src/pl/plpython/plpython.h

index 994457b37d62e34d657c7c8c186fd63abc183f8b..ae1275afe2e94b92048de7bee66bd4db18fda02f 100644 (file)
@@ -94,9 +94,6 @@
 #undef TEXTDOMAIN
 #define TEXTDOMAIN PG_TEXTDOMAIN("plpython")
 
-#include <compile.h>
-#include <eval.h>
-
 /* put back our *printf macros ... this must match src/include/port.h */
 #ifdef vsnprintf
 #undef vsnprintf