From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
Cc: | Manfred Spraul <manfred(at)colorfullife(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Compiling libpq with VisualC |
Date: | 2004-06-12 00:25:20 |
Message-ID: | 200406120025.i5C0PKH06941@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-hackers-win32 pgsql-patches |
Andreas Pflug wrote:
> 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.
True, MinGW and Cygwin. Can we do the C solution?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql | 2004-06-12 02:24:44 | Re: [pgsql-hackers-win32] Tablespaces |
Previous Message | Andrew Dunstan | 2004-06-11 22:14:55 | Re: [pgsql-hackers-win32] Tablespaces |
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql | 2004-06-12 02:24:44 | Re: [pgsql-hackers-win32] Tablespaces |
Previous Message | Andrew Dunstan | 2004-06-11 22:14:55 | Re: [pgsql-hackers-win32] Tablespaces |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-06-12 04:49:05 | Re: Compiling libpq with VisualC |
Previous Message | Andreas Pflug | 2004-06-11 22:01:52 | Re: Compiling libpq with VisualC |