summaryrefslogtreecommitdiff
path: root/src/file.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-15 18:04:36 -0500
committerPaul Smith <psmith@gnu.org>2023-01-15 18:04:36 -0500
commitceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a (patch)
tree393f7ba17b97fd53cc0933fd3d0203583553adcf /src/file.c
parentd4692df20de2db10c186d981ee04ce20487a79c3 (diff)
downloadmake-git-ceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a.tar.gz
Rename VMS macro to MK_OS_VMS
* src/makeint.h: Set MK_OS_VMS to 1 if we're on VMS. * src/*: Convert all #if references to VMS, to use MK_OS_VMS. * gl/lib/*: Ditto.
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/file.c b/src/file.c
index 666ae1fd..510f7d4a 100644
--- a/src/file.c
+++ b/src/file.c
@@ -73,7 +73,7 @@ lookup_file (const char *name)
{
struct file *f;
struct file file_key;
-#ifdef VMS
+#if MK_OS_VMS
int want_vmsify;
#ifndef WANT_CASE_SENSITIVE_TARGETS
char *lname;
@@ -85,7 +85,7 @@ lookup_file (const char *name)
/* This is also done in parse_file_seq, so this is redundant
for names read from makefiles. It is here for names passed
on the command line. */
-#ifdef VMS
+#if MK_OS_VMS
want_vmsify = (strpbrk (name, "]>:^") != NULL);
# ifndef WANT_CASE_SENSITIVE_TARGETS
if (*name != '.')
@@ -117,7 +117,7 @@ lookup_file (const char *name)
{
/* It was all slashes after a dot. */
name = "./";
-#if defined(VMS)
+#if MK_OS_VMS
/* TODO - This section is probably not needed. */
if (want_vmsify)
name = "[]";
@@ -125,7 +125,7 @@ lookup_file (const char *name)
}
file_key.hname = name;
f = hash_find_item (&files, &file_key);
-#if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
+#if MK_OS_VMS && !defined(WANT_CASE_SENSITIVE_TARGETS)
if (*name != '.')
free (lname);
#endif
@@ -149,7 +149,7 @@ enter_file (const char *name)
assert (*name != '\0');
assert (! verify_flag || strcache_iscached (name));
-#if defined(VMS) && !defined(WANT_CASE_SENSITIVE_TARGETS)
+#if MK_OS_VMS && !defined(WANT_CASE_SENSITIVE_TARGETS)
if (*name != '.')
{
const char *n;