summaryrefslogtreecommitdiff
path: root/extra/readline/rlstdc.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-09-11 10:08:48 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-01 23:38:26 +0200
commit88cebbdf6dd02113e8ccadd0424b1713d8b6aeb2 (patch)
tree62c6bf61fae289d362a8348f1957d4b7b8977371 /extra/readline/rlstdc.h
parent74a552d5dc74fb54bc9256887cd957a3754bb70c (diff)
downloadmariadb-git-88cebbdf6dd02113e8ccadd0424b1713d8b6aeb2.tar.gz
cleanup: remove libedit, move readline to extra/
Diffstat (limited to 'extra/readline/rlstdc.h')
-rw-r--r--extra/readline/rlstdc.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/extra/readline/rlstdc.h b/extra/readline/rlstdc.h
new file mode 100644
index 00000000000..2a2272895ce
--- /dev/null
+++ b/extra/readline/rlstdc.h
@@ -0,0 +1,45 @@
+/* stdc.h -- macros to make source compile on both ANSI C and K&R C
+ compilers. */
+
+/* Copyright (C) 1993 Free Software Foundation, Inc.
+
+ This file is part of GNU Bash, the Bourne Again SHell.
+
+ Bash is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ Bash is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Bash; see the file COPYING. If not, write to the Free
+ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#if !defined (_RL_STDC_H_)
+#define _RL_STDC_H_
+
+/* Adapted from BSD /usr/include/sys/cdefs.h. */
+
+/* A function can be defined using prototypes and compile on both ANSI C
+ and traditional C compilers with something like this:
+ extern char *func PARAMS((char *, char *, int)); */
+
+#if !defined (PARAMS)
+# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
+# define PARAMS(protos) protos
+# else
+# define PARAMS(protos) ()
+# endif
+#endif
+
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
+# define __attribute__(x)
+# endif
+#endif
+
+#endif /* !_RL_STDC_H_ */