pgsql: Allow building with MSVC and Strawberry perl

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow building with MSVC and Strawberry perl
Date: 2022-11-25 20:38:40
Message-ID: E1oyfT5-000o31-EW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Backpatch to all live branches

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ae7c5121307d5c8b92b4e0ac63ec2e8635d8c076

Modified Files
--------------
src/pl/plperl/plperl.h | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2022-11-25 22:11:51 Re: pgsql: Allow building with MSVC and Strawberry perl
Previous Message Peter Eisentraut 2022-11-25 15:57:56 pgsql: Correct some SQL feature names