Re: Compiling libpq with VisualC

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Compiling libpq with VisualC
Date: 2004-06-11 22:01:52
Message-ID: 40CA2BD0.3010301@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-06-11 22:05:31 Re: TESTING (was: RE: More vacuum.c refactoring )
Previous Message Darcy Buskermolen 2004-06-11 21:48:23 Re: [COMMITTERS] pgsql-server: Clean up generation of default

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Dunstan 2004-06-11 22:14:55 Re: [pgsql-hackers-win32] Tablespaces
Previous Message Scott Marlowe 2004-06-11 21:41:56 Re: [pgsql-hackers-win32] Tablespaces

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-06-12 00:25:20 Re: Compiling libpq with VisualC
Previous Message Bruce Momjian 2004-06-11 21:39:01 Re: Compiling libpq with VisualC