diff options
| author | Andrew Dunstan | 2022-11-25 20:28:38 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2022-11-25 20:37:33 +0000 |
| commit | 9fe5cff141388316779bcc6662ca2d2cd0e53872 (patch) | |
| tree | 722d94a074fd8d65f600cef1aab84dcb42a32753 | |
| parent | 4ec157c15067be979d271416dacf86a5fce34cbc (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 fbaf98fa825..88fb03718d8 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 /* |
