Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04d61bf
)
Allow building with MSVC and Strawberry perl
author
Andrew Dunstan
<andrew@dunslane.net>
Fri, 25 Nov 2022 20:28:38 +0000
(15:28 -0500)
committer
Andrew Dunstan
<andrew@dunslane.net>
Fri, 25 Nov 2022 20:37:33 +0000
(15:37 -0500)
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
src/pl/plperl/plperl.h
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plperl/plperl.h
b/src/pl/plperl/plperl.h
index c662d1750917edd063f68fd0662b53a410f33f81..cb67d638308de5606e5a366e8c022f2f12aa2e8e 100644
(file)
--- 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
/*