comparison src/if_perl.xs @ 19067:d95296021f6e v8.2.0094

patch 8.2.0094: MS-Windows: cannot build with Strawberry Perl 5.30 Commit: https://github.com/vim/vim/commit/e73b38f8e10c220a382270f69e24cad08d3bf792 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 6 21:22:09 2020 +0100 patch 8.2.0094: MS-Windows: cannot build with Strawberry Perl 5.30 Problem: MS-Windows: cannot build with Strawberry Perl 5.30. Solution: Define __builtin_expect() as a workaround. (Ken Takata, closes #5267)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Jan 2020 21:30:04 +0100
parents f0f8754e3bf5
children 2ef19eed524a
comparison
equal deleted inserted replaced
19066:2379273ec8a9 19067:d95296021f6e
45 #endif 45 #endif
46 46
47 /* Work around for using MSVC and ActivePerl 5.18. */ 47 /* Work around for using MSVC and ActivePerl 5.18. */
48 #ifdef _MSC_VER 48 #ifdef _MSC_VER
49 # define __inline__ __inline 49 # define __inline__ __inline
50
51 // Work around for using MSVC and Strawberry Perl 5.30.
52 # define __builtin_expect(expr, val) (expr)
50 #endif 53 #endif
51 54
52 #ifdef __GNUC__ 55 #ifdef __GNUC__
53 # pragma GCC diagnostic push 56 # pragma GCC diagnostic push
54 # pragma GCC diagnostic ignored "-Wunused-variable" 57 # pragma GCC diagnostic ignored "-Wunused-variable"