diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2022-11-25 15:28:38 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2022-11-25 15:37:33 -0500 |
commit | fed54fc9a5819d43ab60518306925c38f5e2bc43 (patch) | |
tree | ff8be4c8c8a9a5bdec6148d6e0fde16bf9cae3ed /src | |
parent | 04d61bfe64c9098aa737d0bea428b46a46b358bb (diff) | |
download | postgresql-fed54fc9a5819d43ab60518306925c38f5e2bc43.tar.gz postgresql-fed54fc9a5819d43ab60518306925c38f5e2bc43.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plperl/plperl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl.h b/src/pl/plperl/plperl.h index c662d175091..cb67d638308 100644 --- a/src/pl/plperl/plperl.h +++ b/src/pl/plperl/plperl.h @@ -54,6 +54,8 @@ #ifdef isnan #undef isnan #endif +/* Work around for using MSVC and Strawberry Perl >= 5.30. */ +#define __builtin_expect(expr, val) (expr) #endif /* |