aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-02 18:15:49 +0200
committerMax Kellermann <max@duempel.org>2012-08-02 19:12:18 +0200
commit8e331cfc65b6817a147dfaac4d9c4d01414782ac (patch)
tree5a67ed93b37e98a3164b693da1f7e5a140dbecee /src/db
parentedf811fa0271da729e9962e3976f2a68ac35a395 (diff)
gcc.h: re-add gcc_const and gcc_pure
Remove GLib dependency from some headers.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/SimpleDatabasePlugin.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx
index e2d24738..6582118d 100644
--- a/src/db/SimpleDatabasePlugin.hxx
+++ b/src/db/SimpleDatabasePlugin.hxx
@@ -26,7 +26,6 @@
#include <cassert>
#include <string>
-#include <glib.h>
#include <stdbool.h>
#include <time.h>
@@ -40,7 +39,7 @@ class SimpleDatabase : public Database {
time_t mtime;
public:
- G_GNUC_PURE
+ gcc_pure
struct directory *GetRoot() {
assert(root != NULL);
@@ -49,7 +48,7 @@ public:
bool Save(GError **error_r);
- G_GNUC_PURE
+ gcc_pure
time_t GetLastModified() const {
return mtime;
}
@@ -70,12 +69,12 @@ public:
protected:
bool Configure(const struct config_param *param, GError **error_r);
- G_GNUC_PURE
+ gcc_pure
bool Check(GError **error_r) const;
bool Load(GError **error_r);
- G_GNUC_PURE
+ gcc_pure
const struct directory *LookupDirectory(const char *uri) const;
};