diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2007-06-20 17:19:00 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2007-06-20 17:19:00 +0000 |
commit | 52ba24a156f3f52f179a26513dee7f5e27191d8f (patch) | |
tree | 12e9707e1a4d2f98e06f0883bb45eeb99a4da218 | |
parent | c1d89c61fce88ee0e33910af8b0c628a162300c9 (diff) | |
download | postgresql-52ba24a156f3f52f179a26513dee7f5e27191d8f.tar.gz postgresql-52ba24a156f3f52f179a26513dee7f5e27191d8f.zip |
Quiet warnings about redefined PGPORT macros for MSVC.
-rw-r--r-- | src/tools/msvc/Solution.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 1a0c94fbf9c..d8c883f6767 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -3,7 +3,7 @@ package Solution; # # Package that encapsulates a Visual C++ solution file generation # -# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.26 2007/05/27 11:16:41 meskes Exp $ +# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.27 2007/06/20 17:19:00 adunstan Exp $ # use Carp; use strict; @@ -127,6 +127,8 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY } if (my $port = $self->{options}->{"--with-pgport"}) { + print O "#undef DEF_PGPORT\n"; + print O "#undef DEF_PGPORT_STR\n"; print O "#define DEF_PGPORT $port\n"; print O "#define DEF_PGPORT_STR \"$port\"\n"; } |