From 85b77b81caa40f8bcd03921380246cb5863d5d21 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 23:48:01 +0200 Subject: *: use gcc.h macros instead of GLib --- src/db/ProxyDatabasePlugin.cxx | 4 ++-- src/db/SimpleDatabasePlugin.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/db') diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx index ee557ed11..638a801d4 100644 --- a/src/db/ProxyDatabasePlugin.cxx +++ b/src/db/ProxyDatabasePlugin.cxx @@ -76,7 +76,7 @@ protected: bool Configure(const config_param ¶m, GError **error_r); }; -G_GNUC_CONST +gcc_pure static inline GQuark libmpdclient_quark(void) { @@ -107,7 +107,7 @@ static constexpr struct { { TAG_NUM_OF_ITEM_TYPES, MPD_TAG_COUNT } }; -G_GNUC_CONST +gcc_const static enum mpd_tag_type Convert(enum tag_type tag_type) { diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx index ac5a75438..7690a188b 100644 --- a/src/db/SimpleDatabasePlugin.cxx +++ b/src/db/SimpleDatabasePlugin.cxx @@ -33,7 +33,7 @@ #include #include -G_GNUC_CONST +gcc_const static inline GQuark simple_db_quark(void) { @@ -241,7 +241,7 @@ SimpleDatabase::ReturnSong(gcc_unused Song *song) const #endif } -G_GNUC_PURE +gcc_pure const Directory * SimpleDatabase::LookupDirectory(const char *uri) const { -- cgit v1.2.3