summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2014-11-20 22:11:02 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-20 22:12:29 +0000
commitbb0bc2920c90f7c7e32b697b52e4a84cfbabf1a9 (patch)
tree33d1ba369fc7723b8bcf085b8b1ec1dd98a1ecd1
parent8991a6cc3d4ad073c9fe479bbff0e6e217be0a38 (diff)
downloadm4-bb0bc2920c90f7c7e32b697b52e4a84cfbabf1a9.tar.gz
modules: support .dll suffix.
* m4/module.c (m4__module_open): Support .dll suffix in module names. * m4/path.c (FILE_SUFFIXES): Likewise for include builtin. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r--m4/module.c2
-rw-r--r--m4/path.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/m4/module.c b/m4/module.c
index 6f2a2a9e..ac1b58c7 100644
--- a/m4/module.c
+++ b/m4/module.c
@@ -265,7 +265,7 @@ compare_builtin_CB (const void *a, const void *b)
m4_module *
m4__module_open (m4 *context, const char *name, m4_obstack *obs)
{
- static const char * suffixes[] = { "", ".so", NULL };
+ static const char * suffixes[] = { "", ".so", ".dll", NULL };
m4_module * module = NULL;
assert (context);
diff --git a/m4/path.c b/m4/path.c
index 3a932897..0858cfdf 100644
--- a/m4/path.c
+++ b/m4/path.c
@@ -42,6 +42,7 @@ static const char *FILE_SUFFIXES[] = {
".m4f",
".m4",
".so",
+ ".dll",
NULL
};