aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-27 11:18:45 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-27 12:04:54 +0100
commit7f9fc2fbf03e18c1e4033763be4905707d7a84e7 (patch)
treebbb1e8807ad6de2de03823f7c67b61e35983701c /src/nvim/os
parente0eb4188bfabefac54dd7cdcfe57fbb6ddb724b5 (diff)
downloadrneovim-7f9fc2fbf03e18c1e4033763be4905707d7a84e7.tar.gz
rneovim-7f9fc2fbf03e18c1e4033763be4905707d7a84e7.tar.bz2
rneovim-7f9fc2fbf03e18c1e4033763be4905707d7a84e7.zip
refactor: remove unnecessary HAVE_PATHDEF macro
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/env.c7
-rw-r--r--src/nvim/os/os.h6
2 files changed, 1 insertions, 12 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index 5d3fa9f0e6..3c5d6d2159 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -919,10 +919,7 @@ char *vim_getenv(const char *name)
// Don't do this when default_vimruntime_dir is non-empty.
char *vim_path = NULL;
if (vimruntime
-#ifdef HAVE_PATHDEF
- && *default_vimruntime_dir == NUL
-#endif
- ) {
+ && *default_vimruntime_dir == NUL) {
kos_env_path = os_getenv("VIM");
if (kos_env_path != NULL) {
vim_path = vim_version_dir(kos_env_path);
@@ -981,7 +978,6 @@ char *vim_getenv(const char *name)
assert(vim_path != exe_name);
}
-#ifdef HAVE_PATHDEF
// When there is a pathdef.c file we can use default_vim_dir and
// default_vimruntime_dir
if (vim_path == NULL) {
@@ -995,7 +991,6 @@ char *vim_getenv(const char *name)
}
}
}
-#endif
// Set the environment variable, so that the new value can be found fast
// next time, and others can also use it (e.g. Perl).
diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h
index 7ba5f05448..73fcd4ea7b 100644
--- a/src/nvim/os/os.h
+++ b/src/nvim/os/os.h
@@ -10,15 +10,9 @@
#include "nvim/os/stdpaths_defs.h" // IWYU pragma: keep
#include "nvim/types_defs.h" // IWYU pragma: keep
-#define HAVE_PATHDEF
-
-// Some file names are stored in pathdef.c, which is generated from the
-// Makefile to make their value depend on the Makefile.
-#ifdef HAVE_PATHDEF
extern char *default_vim_dir;
extern char *default_vimruntime_dir;
extern char *default_lib_dir;
-#endif
#ifdef INCLUDE_GENERATED_DECLARATIONS
// IWYU pragma: begin_exports