aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GlobalEvents.hxx8
1 files changed, 8 insertions, 0 deletions
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 */