Re: Compiling libpq with VisualC

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Compiling libpq with VisualC
Дата
Msg-id 200406120025.i5C0PKH06941@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Compiling libpq with VisualC  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: Compiling libpq with VisualC
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Compiling libpq with VisualC