[readline] Fix compilation on MinGW
[deliverable/binutils-gdb.git] / readline / rltypedefs.h
index 60f29a18b56e4a518b2829c230e226ae4bbd9ff4..f9f5cd3a5b64d8b1a64c6eeaf6c17ddba1f7e6ff 100644 (file)
@@ -1,6 +1,6 @@
 /* rltypedefs.h -- Type declarations for readline functions. */
 
-/* Copyright (C) 2000-2009 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2011 Free Software Foundation, Inc.
 
    This file is part of the GNU Readline Library (Readline), a library
    for reading lines of text with interactive input and history editing.      
 extern "C" {
 #endif
 
-/* Old-style */
+/* Old-style, attempt to mark as deprecated in some way people will notice. */
 
 #if !defined (_FUNCTION_DEF)
 #  define _FUNCTION_DEF
 
+#if defined(__GNUC__) || defined(__clang__)
+typedef int Function () __attribute__ ((deprecated));
+typedef void VFunction () __attribute__ ((deprecated));
+typedef char *CPFunction () __attribute__ ((deprecated));
+typedef char **CPPFunction () __attribute__ ((deprecated));
+#else
 typedef int Function ();
 typedef void VFunction ();
 typedef char *CPFunction ();
 typedef char **CPPFunction ();
+#endif
 
 #endif /* _FUNCTION_DEF */
 
This page took 0.02371 seconds and 4 git commands to generate.