mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-02 17:32:18 +01:00
Revert "Deprecate G_CONST_RETURN"
This reverts commit a7fc7909da.
The deprecations was not discussed except on Bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=644611
This commit is contained in:
@@ -250,13 +250,11 @@
|
||||
* (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
|
||||
|
||||
Reference in New Issue
Block a user