pgsql: Define WIN32 when _WIN32 is set - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Define WIN32 when _WIN32 is set
Date
Msg-id E1W47oO-0007Su-9C@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Define WIN32 when _WIN32 is set

_WIN32 is set by the compiler, whereas our code uses WIN32 that is
normally set through our build system. To make it possible to build
extensions out of tree we cannot rely on that, so set the WIN32
symbol explicitly whenever the compiler has set _WIN32.

Not setting this symbol causes double inclusion of pg_config_os.h,
and possibly other errors as well.

Craig Ringer

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9c14dd22e144a5bef9b114a7a94df97cb23c6b9b

Modified Files
--------------
src/include/c.h |    9 +++++++++
1 file changed, 9 insertions(+)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Prevent integer overflow with --progress >= 2148
Next
From: Magnus Hagander
Date:
Subject: pgsql: Show SSL encryption information when logging connections