diff options
author | Paul Smith <psmith@gnu.org> | 2023-01-15 18:04:36 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-01-15 18:04:36 -0500 |
commit | ceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a (patch) | |
tree | 393f7ba17b97fd53cc0933fd3d0203583553adcf /src/file.c | |
parent | d4692df20de2db10c186d981ee04ce20487a79c3 (diff) | |
download | make-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |