diff options
Diffstat (limited to 'src/nvim/macros.h')
| -rw-r--r-- | src/nvim/macros.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 26ab5a7de7..5f69fa2f6a 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -1,6 +1,17 @@  #ifndef NVIM_MACROS_H  #define NVIM_MACROS_H +// EXTERN is only defined in main.c. That's where global variables are +// actually defined and initialized. +#ifndef EXTERN +# define EXTERN extern +# define INIT(...) +#else +# ifndef INIT +#  define INIT(...) __VA_ARGS__ +# endif +#endif +  #ifndef MIN  # define MIN(X, Y) ((X) < (Y) ? (X) : (Y))  #endif  | 
