Re: pgsql: Allow building with MSVC and Strawberry perl

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pgsql: Allow building with MSVC and Strawberry perl
Дата
Msg-id 02b5e6c8-a062-94f0-1add-db1fd1db5f0b@dunslane.net
обсуждение исходный текст
Ответ на pgsql: Allow building with MSVC and Strawberry perl  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pgsql: Allow building with MSVC and Strawberry perl  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
On 2022-11-25 Fr 15:38, Andrew Dunstan wrote:
> Allow building with MSVC and Strawberry perl
>
> Strawberry uses __builtin_expect which Visual C doesn't have. For this
> case define it as a noop. Solution taken from vim sources.


Argh! drongo doesn't seem to like this. I thought I'd tested it.

A little further googling suggests that instead of


#define __builtin_expect(expr, val) (expr)


we should probably have something like


#define __builtin_expect(expr, val) ((expr) == (val))


I'll try that.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Allow building with MSVC and Strawberry perl
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Allow building with MSVC and Strawberry perl