Deprecate G_CONST_RETURN

This commit is contained in:
Ryan Lortie
2011-03-12 22:04:53 -05:00
parent 36741245cc
commit a7fc7909da
2 changed files with 5 additions and 2 deletions

View File

@@ -250,11 +250,13 @@
* (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