gcc.h: re-add gcc_const and gcc_pure

Remove GLib dependency from some headers.
This commit is contained in:
Max Kellermann
2012-08-02 18:15:49 +02:00
parent edf811fa02
commit 8e331cfc65
28 changed files with 124 additions and 93 deletions
+3 -4
View File
@@ -20,10 +20,9 @@
#ifndef MPD_OUTPUT_PLUGIN_H
#define MPD_OUTPUT_PLUGIN_H
#include "gcc.h"
#include "gerror.h"
#include <glib.h>
#include <stdbool.h>
#include <stddef.h>
@@ -167,7 +166,7 @@ ao_plugin_test_default_device(const struct audio_output_plugin *plugin)
: false;
}
G_GNUC_MALLOC
gcc_malloc
struct audio_output *
ao_plugin_init(const struct audio_output_plugin *plugin,
const struct config_param *param,
@@ -189,7 +188,7 @@ ao_plugin_open(struct audio_output *ao, struct audio_format *audio_format,
void
ao_plugin_close(struct audio_output *ao);
G_GNUC_PURE
gcc_pure
unsigned
ao_plugin_delay(struct audio_output *ao);