summaryrefslogtreecommitdiff
path: root/lib/readline.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline.h')
-rw-r--r--lib/readline.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/readline.h b/lib/readline.h
index 3840d0fc2a..9048b727d7 100644
--- a/lib/readline.h
+++ b/lib/readline.h
@@ -18,6 +18,11 @@
#ifndef GL_READLINE_H
#define GL_READLINE_H
+/* This file uses _GL_ATTRIBUTE_MALLOC. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#if HAVE_READLINE_READLINE_H
/* <readline/readline.h> makes use of the FILE type without including
<stdio.h> itself. */