Re: 1-line fix to port/thread.c for compiling libpq with Borland

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: 1-line fix to port/thread.c for compiling libpq with Borland
Дата
Msg-id
200403021839.i22IdTS15361@candle.pha.pa.us
Ответ на
Список
Дерево обсуждения
1-line fix to port/thread.c for compiling libpq with Borland C L J Bayuk <ljb220@mindspring.com>
Re: 1-line fix to port/thread.c for compiling libpq with Borland Bruce Momjian <pgman@candle.pha.pa.us>

Patch applied.  Seem that was the only missing place.  Backpatched to
7.4.X.

---------------------------------------------------------------------------

L J Bayuk wrote:
> Below please find a tiny patch to PostgreSQL-7.4.1 src/port/thread.c that I
> found was necessary to compile libpq on Windows using Borland C++ Builder.
> The patch causes the the WIN32 code to be included, and  skipped, if
> under either WIN32 compiler, rather than just with MSVC.
> (Alternative is to just use "#if defined(WIN32)", which works for me, but
> I don't know if that would be safe.)
> 
> 
> *** src/port/thread.c.orig	Mon Nov 24 08:11:27 2003
> --- src/port/thread.c	Tue Feb 24 19:19:35 2004
> ***************
> *** 16,22 ****
>   
>   #include 
>   #include 
> ! #if defined(WIN32) && defined(_MSC_VER)
>   #undef ERROR
>   #else
>   #include 
> --- 16,22 ----
>   
>   #include 
>   #include 
> ! #if defined(WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
>   #undef ERROR
>   #else
>   #include 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
> 

-- 
  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 по дате отправления
От: Tom Lane
Дата:
От: Bruce Momjian
Дата:
FAQ