diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-01-31 12:00:33 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-02-01 11:14:21 +0000 |
commit | 6aee2336ca75301bd4db6b99c2392f63f8304335 (patch) | |
tree | 7c0204e9a70001b008284448795b890fcf6cf4c6 /src/nvim/os | |
parent | b3d304df93347ef3f585ae91ae9ff6f5f28651af (diff) | |
download | rneovim-6aee2336ca75301bd4db6b99c2392f63f8304335.tar.gz rneovim-6aee2336ca75301bd4db6b99c2392f63f8304335.tar.bz2 rneovim-6aee2336ca75301bd4db6b99c2392f63f8304335.zip |
refactor(fileio.c): normalize ifdefs
As well as improving readbability, this also avoids all Treesitter
parsing errors which cannot handle elaborate use of the preprocessor.
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/os_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/os/os_defs.h b/src/nvim/os/os_defs.h index a30e16eeba..f86c0d3483 100644 --- a/src/nvim/os/os_defs.h +++ b/src/nvim/os/os_defs.h @@ -13,6 +13,12 @@ # include "nvim/os/unix_defs.h" #endif +#ifdef BACKSLASH_IN_FILENAME +# define BACKSLASH_IN_FILENAME_BOOL true +#else +# define BACKSLASH_IN_FILENAME_BOOL false +#endif + #if !defined(NAME_MAX) && defined(_XOPEN_NAME_MAX) # define NAME_MAX _XOPEN_NAME_MAX #endif |