From edd7a8c5ddd99bd0c02b4218d43bccb562809d55 Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Thu, 19 Jun 2014 00:58:04 +0300 Subject: Remove #ifdefs TEMPDIRNAMES and add TEMPDIRNAMES for Windows Vim does not define TEMPDIRNAMES for all systems, but it is defined for all systems supported by Neovim. Temporary directory names for Windows was obtained from GetTempPath() function documentation at MSDN. Additionally small renamings were performed. --- src/nvim/os/os.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nvim/os/os.h') diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h index b6148e72bf..b46989d9b4 100644 --- a/src/nvim/os/os.h +++ b/src/nvim/os/os.h @@ -7,10 +7,17 @@ #include "nvim/os/fs_defs.h" #include "nvim/vim.h" +#ifdef WIN32 +# include "nvim/os/win_defs.h" +#else +# include "nvim/os/unix_defs.h" +#endif + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/fs.h.generated.h" # include "os/mem.h.generated.h" # include "os/env.h.generated.h" # include "os/users.h.generated.h" #endif + #endif // NVIM_OS_OS_H -- cgit From 14239ae33128ae961a4ce9e68436ad3f0f557b90 Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Sat, 28 Jun 2014 21:32:04 +0300 Subject: Create os/os_defs.h for os specific definitions --- src/nvim/os/os.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/nvim/os/os.h') diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h index b46989d9b4..69bd1ff4fd 100644 --- a/src/nvim/os/os.h +++ b/src/nvim/os/os.h @@ -7,12 +7,6 @@ #include "nvim/os/fs_defs.h" #include "nvim/vim.h" -#ifdef WIN32 -# include "nvim/os/win_defs.h" -#else -# include "nvim/os/unix_defs.h" -#endif - #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/fs.h.generated.h" # include "os/mem.h.generated.h" -- cgit