aboutsummaryrefslogtreecommitdiffstats
path: root/src/GlobalEvents.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-11 11:02:15 +0100
committerMax Kellermann <max@duempel.org>2013-01-11 11:10:46 +0100
commit9d770d6084cb90b99ab129ff0b9e1ef57aab9a83 (patch)
tree1f6bcfb90493ddee107ec2df89661bb94056224f /src/GlobalEvents.hxx
parent7f0297dc4484eeef41f90a940d2a919941e648da (diff)
downloadmpd-9d770d6084cb90b99ab129ff0b9e1ef57aab9a83.tar.gz
mpd-9d770d6084cb90b99ab129ff0b9e1ef57aab9a83.tar.xz
mpd-9d770d6084cb90b99ab129ff0b9e1ef57aab9a83.zip
GlobalEvents: #undef DELETE on Windows
Work around a build failure due to windows.h macro.
Diffstat (limited to '')
-rw-r--r--src/GlobalEvents.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/GlobalEvents.hxx b/src/GlobalEvents.hxx
index 458e77d7b..2e549305b 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 */