Re: Compiling libpq with VisualC - Mailing list pgsql-patches

From Andreas Pflug
Subject Re: Compiling libpq with VisualC
Date
Msg-id 40CA2BD0.3010301@pse-consulting.de
Whole thread Raw
In response to Re: Compiling libpq with VisualC  (Manfred Spraul <manfred@colorfullife.com>)
Responses Re: Compiling libpq with VisualC
List pgsql-patches
Manfred Spraul wrote:

>
> Wrong. There are portable test-and-set functions in the Win32 SDK: for
> example InterlockedCompareExchange. They operate on ints and do not
> need initialization.

'k, missed that one. Lets use it.

>
> There is a third option: Add one C++ file and use the constructor to
> initialize the mutex. VisualC is always a C++ compiler, thus C++
> support shouldn't be an issue.

Our code is potentially not only VC.

Regards,
Andreas


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Compiling libpq with VisualC
Next
From: Bruce Momjian
Date:
Subject: Re: Compiling libpq with VisualC