]> granicus.if.org Git - postgresql/commit
Fix macro-redefinition warning on MSVC.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Sep 2017 15:01:08 +0000 (11:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Sep 2017 15:01:08 +0000 (11:01 -0400)
commit1d30553aa2356e434062cd7bc3744579e97f328b
tree81a7cb6b3ede7c01c54c00b53c9e9fbeca6e1941
parent2efd54b45a892661c50a87c1cf78e964fa2b7e00
Fix macro-redefinition warning on MSVC.

In commit 9d6b160d7, I tweaked pg_config.h.win32 to use
"#define HAVE_LONG_LONG_INT_64 1" rather than defining it as empty,
for consistency with what happens in an autoconf'd build.
But Solution.pm injects another definition of that macro into
ecpg_config.h, leading to justifiable (though harmless) compiler whining.
Make that one consistent too.  Back-patch, like the previous patch.

Discussion: https://postgr.es/m/CAEepm=1dWsXROuSbRg8PbKLh0S=8Ou-V8sr05DxmJOF5chBxqQ@mail.gmail.com
src/tools/msvc/Solution.pm