[COMMITTERS] pgsql: Fix unportable definition of BSWAP64() macro.

2017-02-24 Thread Tom Lane
Fix unportable definition of BSWAP64() macro. We have a portable way of writing uint64 constants, but whoever wrote this macro didn't know about it. While at it, fix unsafe under-parenthesization of arguments. That might be moot, because there are already good reasons not to use the macro on any

[COMMITTERS] pgsql: Fix unportable definition of BSWAP64() macro.

2017-02-24 Thread Tom Lane
Fix unportable definition of BSWAP64() macro. We have a portable way of writing uint64 constants, but whoever wrote this macro didn't know about it. While at it, fix unsafe under-parenthesization of arguments. That might be moot, because there are already good reasons not to use the macro on any

[COMMITTERS] pgsql: Suppress compiler warnings in ecpg test on newer Windows toolcha

2017-02-24 Thread Tom Lane
Suppress compiler warnings in ecpg test on newer Windows toolchains. nan_test.pgc supposed that it could unconditionally #define isnan() and isinf() on WIN32. This was evidently copied at some point from src/include/port/win32.h, but nowadays there's a test on _MSC_VER there. Make nan_test.pgc l