mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 14:31:18 +02:00
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
aa9d916f67
commit
171c7fffaa
@ -54,6 +54,8 @@
|
|||||||
#ifdef isnan
|
#ifdef isnan
|
||||||
#undef isnan
|
#undef isnan
|
||||||
#endif
|
#endif
|
||||||
|
/* Work around for using MSVC and Strawberry Perl >= 5.30. */
|
||||||
|
#define __builtin_expect(expr, val) (expr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user