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/Win32Main.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Win32Main.cxx') diff --git a/src/Win32Main.cxx b/src/Win32Main.cxx index 0cd5e445b..d495fe088 100644 --- a/src/Win32Main.cxx +++ b/src/Win32Main.cxx @@ -22,6 +22,7 @@ #ifdef WIN32 +#include "gcc.h" #include "mpd_error.h" #include "GlobalEvents.hxx" @@ -65,8 +66,8 @@ service_notify_status(DWORD status_code) } static DWORD WINAPI -service_dispatcher(G_GNUC_UNUSED DWORD control, G_GNUC_UNUSED DWORD event_type, - G_GNUC_UNUSED void *event_data, G_GNUC_UNUSED void *context) +service_dispatcher(gcc_unused DWORD control, gcc_unused DWORD event_type, + gcc_unused void *event_data, gcc_unused void *context) { switch (control) { case SERVICE_CONTROL_SHUTDOWN: @@ -79,7 +80,7 @@ service_dispatcher(G_GNUC_UNUSED DWORD control, G_GNUC_UNUSED DWORD event_type, } static void WINAPI -service_main(G_GNUC_UNUSED DWORD argc, G_GNUC_UNUSED CHAR *argv[]) +service_main(gcc_unused DWORD argc, gcc_unused CHAR *argv[]) { DWORD error_code; gchar* error_message; -- cgit v1.2.3