GlobalEvents: #undef DELETE on Windows

Work around a build failure due to windows.h macro.
This commit is contained in:
Max Kellermann 2013-01-11 11:02:15 +01:00
parent 7f0297dc44
commit 9d770d6084

View File

@ -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 */