Re: libpq++ on Windows - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: libpq++ on Windows
Date
Msg-id 1598.994047705@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq++ on Windows  (Christian Ullrich <chris@chrullrich.de>)
Responses Re: libpq++ on Windows  (Christian Ullrich <chris@chrullrich.de>)
List pgsql-interfaces
Christian Ullrich <chris@chrullrich.de> writes:
> * Peter Eisentraut wrote on Sunday, 2001-07-01:
>> Why not put the addition to config.h.in into config.h.win32?  When doing a
>> native Win32 build config.h.in isn't used anyway.

> Because the '#define DLLAPI' in config.h.in -- from which the 
> config.h for Unix and Cygwin/Win32 builds is generated -- is 
> necessary to make the compiler happy about the modifications
> to the class declarations.

config.h.in is absolutely NOT the right place for platform-specific
defines.

I'd put this in the same category as DLLIMPORT, which is in c.h
(and just as ugly an example of Microsoft cultural imperialism,
but I suppose there's no point in arguing about it).
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Ernesto A. Lira Castro"
Date:
Subject: Security
Next
From: Christian Ullrich
Date:
Subject: Re: libpq++ on Windows