aboutsummaryrefslogtreecommitdiff
path: root/readline/rlstdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'readline/rlstdc.h')
-rw-r--r--readline/rlstdc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/readline/rlstdc.h b/readline/rlstdc.h
index a6d2394..2aaa30b 100644
--- a/readline/rlstdc.h
+++ b/readline/rlstdc.h
@@ -42,4 +42,16 @@
# endif
#endif
+/* Moved from config.h.in because readline.h:rl_message depends on these
+ defines. */
+#if defined (__STDC__) && defined (HAVE_STDARG_H)
+# define PREFER_STDARG
+# define USE_VARARGS
+#else
+# if defined (HAVE_VARARGS_H)
+# define PREFER_VARARGS
+# define USE_VARARGS
+# endif
+#endif
+
#endif /* !_RL_STDC_H_ */