summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorichizok <gclient.gaap@gmail.com>2021-12-28 15:51:45 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-28 15:51:45 +0000
commit8bb3fe4d4dcd27c02e903f6772fdc8fe2e9eba70 (patch)
tree8580fd12601cf226570353cd10d9f2ab2e24abc5 /src/vim.h
parentd9da86e94ea8dbaa056270a666892945c40a6674 (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.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/vim.h b/src/vim.h
index 55bb7cd15c..21832ab471 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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 {