diff options
author | Max Kellermann <max@musicpd.org> | 2020-10-08 19:38:26 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-10-08 20:43:21 +0200 |
commit | 22bea5c97eed7ede499bd78608d388549e9e37e4 (patch) | |
tree | 37268ab9d40b59c9e50121139c269c4d192549fb /src | |
parent | 75802ebcc625785c6aee14acef51240d35e60d57 (diff) |
event/Loop: reorder includes
This just happened to break the Windows build because of the
`GetObject` macro in `windows.h`, so I added a kludge to
PollResultGeneric.hxx.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/Loop.hxx | 7 | ||||
-rw-r--r-- | src/event/PollResultGeneric.hxx | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 865aa8cbc..93080afbe 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -20,15 +20,14 @@ #ifndef MPD_EVENT_LOOP_HXX #define MPD_EVENT_LOOP_HXX -#include "thread/Id.hxx" -#include "util/Compiler.h" - #include "PollGroup.hxx" -#include "thread/Mutex.hxx" #include "WakeFD.hxx" #include "SocketMonitor.hxx" #include "IdleMonitor.hxx" #include "DeferEvent.hxx" +#include "thread/Id.hxx" +#include "thread/Mutex.hxx" +#include "util/Compiler.h" #include <boost/intrusive/set.hpp> #include <boost/intrusive/list.hpp> diff --git a/src/event/PollResultGeneric.hxx b/src/event/PollResultGeneric.hxx index 6ba466512..1c4b9d7dd 100644 --- a/src/event/PollResultGeneric.hxx +++ b/src/event/PollResultGeneric.hxx @@ -23,6 +23,14 @@ #include <cstddef> #include <vector> +#ifdef _WIN32 +#include <windows.h> +/* damn you, windows.h! */ +#ifdef GetObject +#undef GetObject +#endif +#endif + class PollResultGeneric { struct Item |