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
This commit is contained in:
parent
9b788aafdc
commit
ae7c512130
@ -41,6 +41,8 @@
|
|||||||
*/
|
*/
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define __inline__ inline
|
#define __inline__ inline
|
||||||
|
/* Work around for using MSVC and Strawberry Perl >= 5.30. */
|
||||||
|
#define __builtin_expect(expr, val) (expr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user