PR gdb/2138
[external/binutils.git] / readline / rlstdc.h
index dac8e98..847fa9c 100644 (file)
 
 /* A function can be defined using prototypes and compile on both ANSI C
    and traditional C compilers with something like this:
-       extern char *func __P((char *, char *, int)); */
+       extern char *func PARAMS((char *, char *, int)); */
 
-#if !defined (__P)
+#if !defined (PARAMS)
 #  if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus)
-#    define __P(protos) protos
+#    define PARAMS(protos) protos
 #  else
-#    define __P(protos) ()
+#    define PARAMS(protos) ()
+#  endif
+#endif
+
+#ifndef __attribute__
+#  if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
+#    define __attribute__(x)
 #  endif
 #endif