mirror of
https://github.com/postgres/postgres.git
synced 2026-03-18 00:22:18 -04: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
d94f29cb89
commit
341f4e002d
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue