summaryrefslogtreecommitdiff
path: root/lib/dfa.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-12-16 17:02:31 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-12-17 00:24:52 -0800
commit10ad4d2ac38c2ac2d16bd7686792715f64f9435e (patch)
tree091e9e373f5d6b7abd7840faa0b3c25c203bac53 /lib/dfa.h
parent23c8b490241e9a65c6f67b824946017a2a98a4ca (diff)
downloadgnulib-10ad4d2ac38c2ac2d16bd7686792715f64f9435e.tar.gz
dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC. * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty if not already defined.
Diffstat (limited to 'lib/dfa.h')
-rw-r--r--lib/dfa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dfa.h b/lib/dfa.h
index 96c3bf1f1b..09e7991bda 100644
--- a/lib/dfa.h
+++ b/lib/dfa.h
@@ -37,6 +37,11 @@ struct dfamust
/* The dfa structure. It is completely opaque. */
struct dfa;
+/* Needed when Gnulib is not used. */
+#ifndef _GL_ATTRIBUTE_MALLOC
+# define _GL_ATTRIBUTE_MALLOC
+#endif
+
/* Entry points. */
/* Allocate a struct dfa. The struct dfa is completely opaque.