Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64
Date
Msg-id 24578.1525114783@sss.pgh.pa.us
Whole thread Raw
In response to Re: Issues while building PG in MS Windows, using MSYS2 andMinGW-w64  ("insaf.k" <insaf.k@zohocorp.com>)
Responses Re: Issues while building PG in MS Windows, using MSYS2 and MinGW-w64  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
List pgsql-hackers
"insaf.k" <insaf.k@zohocorp.com> writes:
> gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -std=c11
-I../../src/port-DFRONTEND -I../../src/include  -I./src/include/port/win32 -DEXEC_BACKEND
"-I../../src/include/port/win32"-DBUILDING_DLL  -c -o win32env.o win32env.c 

> win32env.c: In function 'pgwin32_putenv':
> win32env.c:24:22: error: expected ')' before '*' token
>   typedef int (_cdecl * PUTENVPROC) (const char *);
>                       ^

Hmm.  This sort of looks like your compiler isn't recognizing _cdecl
as a special token, but I have no idea why a Windows-ready compiler
wouldn't handle that.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: [RFC] Add an until-0 loop in psql
Next
From: Peter Geoghegan
Date:
Subject: Re: BufFileSize() doesn't work on a "shared" BufFiles