pgsql: Prevent perl header overriding our *snprintf macros, and give it

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prevent perl header overriding our *snprintf macros, and give it
Date: 2011-04-25 16:55:06
Message-ID: E1QEP3y-0008T6-GS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Prevent perl header overriding our *snprintf macros, and give it a usable PERL_UNUSED_DECL value.

This quiets compiler warnings about redefined macros and unused Perl__unused variables. The
redefinition of snprintf and vsnprintf is something we want to avoid anyway, if we've
gone to the bother of setting up the macros to point to our implementation.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/77622887449f0fd0eb08b28fe4fa5992c357d45a

Modified Files
--------------
src/pl/plperl/plperl.h | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-04-25 16:59:01 pgsql: Assorted minor changes to silence Windows compiler warnings.
Previous Message Andrew Dunstan 2011-04-25 16:41:26 pgsql: Give getopt() a prototype and modern style arg specs.