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:31:01 +0000 (14:31 +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 3a1f0d56d7cf782763b97126c4611848ad5d6d81..209f604579d30fb2adec771f0efc115b3618ffa0 100644 (file)
@@ -124,9 +124,6 @@ typedef int Py_ssize_t;
 #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