summaryrefslogtreecommitdiff
path: root/as/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'as/macro.c')
-rw-r--r--as/macro.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/as/macro.c b/as/macro.c
index 37048a8..f0fc758 100644
--- a/as/macro.c
+++ b/as/macro.c
@@ -1,5 +1,6 @@
/* macro.c - expand macros for assembler */
+#include "syshead.h"
#include "const.h"
#include "type.h"
#include "globvar.h"
@@ -8,12 +9,6 @@
#define EXTERN
#include "macro.h"
-#ifdef STDC_HEADERS_MISSING
-int strncmp P((const char *s1, const char *s2, unsigned n));
-#else
-#include <string.h>
-#endif
-
/*
Enter macro: stack macro and get its parameters.
Parameters form a linked list of null-terminated strings of form
@@ -137,8 +132,12 @@ PUBLIC void pmacro()
getsym_nolookup();
if (sym == IDENT)
{
- if (lineptr == symname + 4 && strncmp(symname, "MEND", 4) == 0)
+ if (lineptr == symname + 4 &&
+ ( strncmp(symname, "MEND", 4) == 0 || strncmp(symname, "mend", 4) == 0) )
+ {
+ getsym();
break;
+ }
}
else if (sym != MACROARG)
{