summaryrefslogtreecommitdiff
path: root/src/rule.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/rule.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/rule.c')
-rw-r--r--src/rule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rule.c b/src/rule.c
index d0901f47..85b65ff5 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -171,7 +171,7 @@ snap_implicit_rules (void)
const char *dname = dep_name (dep);
size_t len = strlen (dname);
-#ifdef VMS
+#if MK_OS_VMS
const char *p = strrchr (dname, ']');
const char *p2;
if (p == 0)
@@ -250,7 +250,7 @@ convert_suffix_rule (const char *target, const char *source,
{
/* Special case: TARGET being nil means we are defining a '.X.a' suffix
rule; the target pattern is always '(%.o)'. */
-#ifdef VMS
+#if MK_OS_VMS
*names = strcache_add_len ("(%.obj)", 7);
#else
*names = strcache_add_len ("(%.o)", 5);