0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3922: cannot build with dynamic Ruby 3.1

Problem:    Cannot build with dynamic Ruby 3.1.
Solution:   Add "_EXTRA" variables for CI.  Add missing functions. (Ozaki
            Kiichi, closes #9420)
This commit is contained in:
ichizok
2021-12-28 15:51:45 +00:00
committed by Bram Moolenaar
parent d9da86e94e
commit 8bb3fe4d4d
10 changed files with 98 additions and 31 deletions

View File

@@ -2177,13 +2177,15 @@ typedef struct stat stat_T;
#endif
#if defined(__GNUC__) || defined(__clang__)
# define likely(x) __builtin_expect((x), 1)
# define unlikely(x) __builtin_expect((x), 0)
# define ATTRIBUTE_COLD __attribute__((cold))
# define likely(x) __builtin_expect((x), 1)
# define unlikely(x) __builtin_expect((x), 0)
# define ATTRIBUTE_COLD __attribute__((cold))
# define ATTRIBUTE_NORETURN __attribute__((noreturn))
#else
# define unlikely(x) (x)
# define likely(x) (x)
# define unlikely(x) (x)
# define likely(x) (x)
# define ATTRIBUTE_COLD
# define ATTRIBUTE_NORETURN
#endif
typedef enum {