Commit 22bea5c9 authored by Max Kellermann's avatar Max Kellermann

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.
parent 75802ebc
...@@ -20,15 +20,14 @@ ...@@ -20,15 +20,14 @@
#ifndef MPD_EVENT_LOOP_HXX #ifndef MPD_EVENT_LOOP_HXX
#define MPD_EVENT_LOOP_HXX #define MPD_EVENT_LOOP_HXX
#include "thread/Id.hxx"
#include "util/Compiler.h"
#include "PollGroup.hxx" #include "PollGroup.hxx"
#include "thread/Mutex.hxx"
#include "WakeFD.hxx" #include "WakeFD.hxx"
#include "SocketMonitor.hxx" #include "SocketMonitor.hxx"
#include "IdleMonitor.hxx" #include "IdleMonitor.hxx"
#include "DeferEvent.hxx" #include "DeferEvent.hxx"
#include "thread/Id.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include <boost/intrusive/set.hpp> #include <boost/intrusive/set.hpp>
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
......
...@@ -23,6 +23,14 @@ ...@@ -23,6 +23,14 @@
#include <cstddef> #include <cstddef>
#include <vector> #include <vector>
#ifdef _WIN32
#include <windows.h>
/* damn you, windows.h! */
#ifdef GetObject
#undef GetObject
#endif
#endif
class PollResultGeneric class PollResultGeneric
{ {
struct Item struct Item
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment