Re: Autoconf, libpq and replacement function

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Autoconf, libpq and replacement function
Дата
Msg-id 492A9B8B.9080007@gmx.net
обсуждение исходный текст
Ответ на Re: Autoconf, libpq and replacement function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> I'd suggest making the callers do something like
> 
>     #ifdef HAVE_FNMATCH
>     #include <fnmatch.h>
>     #else
>     #include "port/pg_fnmatch.h"
>     #endif

The way Autoconf suggests to organize this is to provide a fake 
fnmatch.h (they call it fnmatch_.h) and link it to fnmatch.h if it is 
needed.

This way, callers don't need to know the difference.


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Windowing Function Patch Review -> Standard Conformance
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Autoconf, libpq and replacement function