Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 341f4e0

Browse files
committed
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
1 parent d94f29c commit 341f4e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pl/plperl/plperl.h

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
#ifdef isnan
5959
#undef isnan
6060
#endif
61+
/* Work around for using MSVC and Strawberry Perl >= 5.30. */
62+
#define __builtin_expect(expr, val) (expr)
6163
#endif
6264

6365
/*

0 commit comments

Comments
 (0)