Deprecate G_CONST_RETURN
authorRyan Lortie <desrt@desrt.ca>
Sun, 13 Mar 2011 03:04:53 +0000 (22:04 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 15 Mar 2011 05:32:22 +0000 (01:32 -0400)
docs/reference/glib/tmpl/macros.sgml
glib/gmacros.h

index 7f40eb3..cf411ee 100644 (file)
@@ -227,5 +227,6 @@ turn it off. This macro should only be used for return values and for
 <emphasis>in</emphasis> parameters. 
 </para>
 
-
-
+@Deprecated: 2.30: API providers should replace all existing uses with
+  <literal>const</literal> and API consumers should adjust their code
+  accordingly.
index 9f9c25d..538ded6 100644 (file)
  * (usually char*) are const or not.  Don't try using this feature for
  * functions with C++ linkage.
  */
+#ifndef G_DISABLE_DEPRECATED
 #ifdef G_DISABLE_CONST_RETURNS
 #define G_CONST_RETURN
 #else
 #define G_CONST_RETURN const
 #endif
+#endif
 
 /*
  * The G_LIKELY and G_UNLIKELY macros let the programmer give hints to