]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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:32:26 +0000 (14:32 +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 5c2e6a83f30b6702da84bd8804bafb7213cd084e..3177b56d1c2c605d93215a8145a44f33e34e43bd 100644 (file)
@@ -121,9 +121,6 @@ typedef int Py_ssize_t;
 #undef TEXTDOMAIN
 #define TEXTDOMAIN PG_TEXTDOMAIN("plpython")
 
-#include <compile.h>
-#include <eval.h>
-
 /* put back our snprintf and vsnprintf */
 #ifdef USE_REPL_SNPRINTF
 #ifdef snprintf