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:
12
src/vim.h
12
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 {
|
||||
|
Reference in New Issue
Block a user