From 9d770d6084cb90b99ab129ff0b9e1ef57aab9a83 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Jan 2013 11:02:15 +0100 Subject: GlobalEvents: #undef DELETE on Windows Work around a build failure due to windows.h macro. --- src/GlobalEvents.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GlobalEvents.hxx b/src/GlobalEvents.hxx index 458e77d7..2e549305 100644 --- a/src/GlobalEvents.hxx +++ b/src/GlobalEvents.hxx @@ -20,6 +20,14 @@ #ifndef MPD_GLOBAL_EVENTS_HXX #define MPD_GLOBAL_EVENTS_HXX +#ifdef WIN32 +/* DELETE is a WIN32 macro that poisons our namespace; this is a + kludge to allow us to use it anyway */ +#ifdef DELETE +#undef DELETE +#endif +#endif + namespace GlobalEvents { enum Event { /** database update was finished */ -- cgit v1.2.3