Thread: pgsql: Restore the primacy of postgres.h in plpython.c.

pgsql: Restore the primacy of postgres.h in plpython.c.

From
Andrew Dunstan
Date:
Restore the primacy of postgres.h in plpython.c.

To avoid having the python headers hijack various definitions,
we now include them after all the system headers we want, having
first undefined some of the things they want to define. After that's
done we restore the things they scribbled on that matter, namely our
snprintf and vsnprintf macros, if we're using them.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a11cf4334138c3af8504c71a091b4f5c317776ef

Modified Files
--------------
src/pl/plpython/plpython.c |   95 +++++++++++++++++++++++++++++++-------------
1 files changed, 67 insertions(+), 28 deletions(-)