summaryrefslogtreecommitdiff
path: root/libsoup
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2019-08-07 13:20:37 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2019-08-07 13:20:37 -0500
commit036b0258bafff7af784e8320c9e77f5488341b83 (patch)
tree5637d2f8f3b5aef79e837ed3254cd7e181ae2ab3 /libsoup
parent961e87ff3b9a4e8b6011bfad698aeac44cfdf059 (diff)
downloadlibsoup-036b0258bafff7af784e8320c9e77f5488341b83.tar.gz
Use G_GNUC_[BEGIN,END]_IGNORE_DEPRECATIONS instead
This is nicer, thanks to Christian for pointing out this exists.
Diffstat (limited to 'libsoup')
-rw-r--r--libsoup/soup-date.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h
index 319ed9b9..04d65e8d 100644
--- a/libsoup/soup-date.h
+++ b/libsoup/soup-date.h
@@ -59,16 +59,11 @@ char *soup_date_to_string (SoupDate *date,
SOUP_AVAILABLE_IN_2_24
time_t soup_date_to_time_t (SoupDate *date);
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
SOUP_AVAILABLE_IN_2_24
void soup_date_to_timeval (SoupDate *date,
GTimeVal *time);
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+G_GNUC_END_IGNORE_DEPRECATIONS
SOUP_AVAILABLE_IN_2_24
gboolean soup_date_is_past (SoupDate *date);