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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Restore the primacy of postgres.h in plpython.c.
Date: 2011-08-04 17:14:30
Message-ID: E1Qp1V8-0006vN-HC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-08-04 19:02:23 pgsql: Fix markup for recent wal_level clarification.
Previous Message Robert Haas 2011-08-04 16:43:51 pgsql: Create VXID locks "lazily" in the main lock table.