diff options
author | Andrew Dunstan | 2022-11-25 20:28:38 +0000 |
---|---|---|
committer | Andrew Dunstan | 2022-11-25 20:28:38 +0000 |
commit | 341f4e002d461a3c5513cb864490cddae2b43a64 (patch) | |
tree | ab3ddd73166dae19c246f90d970f7d67b325ea64 | |
parent | d94f29cb8910a380caa795f56e69ed036fb8c5d0 (diff) |
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
-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 0c196ea046..5243f308bd 100644 --- a/src/pl/plperl/plperl.h +++ b/src/pl/plperl/plperl.h @@ -58,6 +58,8 @@ #ifdef isnan #undef isnan #endif +/* Work around for using MSVC and Strawberry Perl >= 5.30. */ +#define __builtin_expect(expr, val) (expr) #endif /* |