diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-19 02:55:10 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-19 02:55:27 +0100 |
commit | 3a2ae17062ee6b860e7a76ba51397be50d1810db (patch) | |
tree | 61481e6076405d0a88854bf4c54da0bfdcf1518a | |
parent | 22337b1c014433fef957c6078d4b11dd44852246 (diff) | |
download | rneovim-3a2ae17062ee6b860e7a76ba51397be50d1810db.tar.gz rneovim-3a2ae17062ee6b860e7a76ba51397be50d1810db.tar.bz2 rneovim-3a2ae17062ee6b860e7a76ba51397be50d1810db.zip |
globals.h: Avoid expression in array definition.
See https://github.com/neovim/neovim/commit/aa56b24ee6553b4417f2c2defdde5be302a868cd#commitcomment-20949000
-rw-r--r-- | src/nvim/globals.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 20a00e1d9c..54551484ee 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -882,8 +882,13 @@ EXTERN int swap_exists_did_quit INIT(= FALSE); EXTERN char_u IObuff[IOSIZE]; ///< Buffer for sprintf, I/O, etc. EXTERN char_u NameBuff[MAXPATHL]; ///< Buffer for expanding file names EXTERN char_u msg_buf[MSG_BUF_LEN]; ///< Small buffer for messages -EXTERN char os_buf[MAX(MAXPATHL, IOSIZE)]; ///< Buffer for the os/ layer - +EXTERN char os_buf[ ///< Buffer for the os/ layer +#if MAXPATHL > IOSIZE +MAXPATHL +#else +IOSIZE +#endif +]; /* When non-zero, postpone redrawing. */ EXTERN int RedrawingDisabled INIT(= 0); |