summaryrefslogtreecommitdiff
path: root/glib/gstring.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-10-11 14:34:59 +0800
committerMatthias Clasen <mclasen@redhat.com>2011-10-11 13:42:59 -0400
commit08d6e1147d2e6e3abf85ae7a399c689609a7b761 (patch)
treeb51f31353dafd010e4447defe0b293a54d2d3ede /glib/gstring.h
parenta1acf35653ac5d437bdd8dce1b2b56333b005c0c (diff)
downloadglib-08d6e1147d2e6e3abf85ae7a399c689609a7b761.tar.gz
Use GLIB_DEPRECATED instead of G_GNUC_DEPRECATED in our headers
This will let others opt out of seeing GLib deprecation warnings by defining GLIB_DISABLE_DEPRECATION_WARNINGS. https://bugzilla.gnome.org/show_bug.cgi?id=661438
Diffstat (limited to 'glib/gstring.h')
-rw-r--r--glib/gstring.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/gstring.h b/glib/gstring.h
index fc79ae332..4e5e1ec66 100644
--- a/glib/gstring.h
+++ b/glib/gstring.h
@@ -142,8 +142,10 @@ g_string_append_c_inline (GString *gstring,
#ifndef G_DISABLE_DEPRECATED
-GString *g_string_down (GString *string) G_GNUC_DEPRECATED;
-GString *g_string_up (GString *string) G_GNUC_DEPRECATED;
+GLIB_DEPRECATED
+GString *g_string_down (GString *string);
+GLIB_DEPRECATED
+GString *g_string_up (GString *string);
#define g_string_sprintf g_string_printf
#define g_string_sprintfa g_string_append_printf