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