diff options
author | ichizok <gclient.gaap@gmail.com> | 2021-12-28 15:51:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-28 15:51:45 +0000 |
commit | 8bb3fe4d4dcd27c02e903f6772fdc8fe2e9eba70 (patch) | |
tree | 8580fd12601cf226570353cd10d9f2ab2e24abc5 /src/vim.h | |
parent | d9da86e94ea8dbaa056270a666892945c40a6674 (diff) |
patch 8.2.3922: cannot build with dynamic Ruby 3.1v8.2.3922
Problem: Cannot build with dynamic Ruby 3.1.
Solution: Add "_EXTRA" variables for CI. Add missing functions. (Ozaki
Kiichi, closes #9420)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 { |