Re: narwhal and PGDLLIMPORT - Mailing list pgsql-hackers

From Tom Lane
Subject Re: narwhal and PGDLLIMPORT
Date
Msg-id 396.1392232270@sss.pgh.pa.us
Whole thread Raw
In response to Re: narwhal and PGDLLIMPORT  (Marco Atzeri <marco.atzeri@gmail.com>)
Responses Re: narwhal and PGDLLIMPORT  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Marco Atzeri <marco.atzeri@gmail.com> writes:
> On 12/02/2014 19:19, Andres Freund wrote:
>> On 2014-02-12 19:13:07 +0100, Marco Atzeri wrote:
>>> About PGDLLIMPORT , my build log is full of "warning: ‘optarg’ redeclared
>>> without dllimport attribute: previous dllimport ignored "

>> That should be fixed then. I guess cygwin's getopt.h declares it that way?

> from /usr/include/getopt.h

> extern char __declspec(dllimport) *optarg;      /* argument associated 
> with option */

Hm.  All of our files that use getopt also do

extern char *optarg;
extern int    optind,           opterr;

#ifdef HAVE_INT_OPTRESET
extern int    optreset;            /* might not be declared by system headers */
#endif
        regards, tom lane



pgsql-hackers by date:

Previous
From: Marco Atzeri
Date:
Subject: Re: narwhal and PGDLLIMPORT
Next
From: Robert Haas
Date:
Subject: Re: dynamic shared memory and locks