aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-03-07 13:41:40 +0900
committererw7 <erw7.github@gmail.com>2019-03-07 13:49:02 +0900
commitc9264e6d524b3c2ac1a1388d5627f9b0c717cbc7 (patch)
tree318dde04bcbc05f351955717cc0e101b8890613c /src/nvim/os
parent24a56cca308621a5a585f73b22e5421461318b3d (diff)
downloadrneovim-c9264e6d524b3c2ac1a1388d5627f9b0c717cbc7.tar.gz
rneovim-c9264e6d524b3c2ac1a1388d5627f9b0c717cbc7.tar.bz2
rneovim-c9264e6d524b3c2ac1a1388d5627f9b0c717cbc7.zip
Fix os.getenv of lua on Windows
Change to use os_getenv instead of getenv because environment variable set by uv_os_setenv can not be get with getenv.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/env.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/os/env.h b/src/nvim/os/env.h
new file mode 100644
index 0000000000..e0abd87220
--- /dev/null
+++ b/src/nvim/os/env.h
@@ -0,0 +1,7 @@
+#ifndef NVIM_OS_ENV_H
+#define NVIM_OS_ENV_H
+
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "os/env.h.generated.h"
+#endif
+#endif // NVIM_OS_ENV_H