From 3c41e9f022a8fbf6a1258b1a63c6a685421d3e88 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Nov 2017 19:57:54 +0100 Subject: [PATCH] evnet/SocketMonitor: move WIN32/ERROR comment to PollGroupWinSelect.hxx --- src/event/MultiSocketMonitor.hxx | 8 -------- src/event/PollGroupWinSelect.hxx | 2 ++ src/event/SocketMonitor.hxx | 8 -------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx index 7f08c1511..fdf353bcc 100644 --- a/src/event/MultiSocketMonitor.hxx +++ b/src/event/MultiSocketMonitor.hxx @@ -31,14 +31,6 @@ #include -#ifdef WIN32 -/* ERROR is a WIN32 macro that poisons our namespace; this is a kludge - to allow us to use it anyway */ -#ifdef ERROR -#undef ERROR -#endif -#endif - #ifndef WIN32 struct pollfd; #endif diff --git a/src/event/PollGroupWinSelect.hxx b/src/event/PollGroupWinSelect.hxx index 92eec6d13..f60b52ce3 100644 --- a/src/event/PollGroupWinSelect.hxx +++ b/src/event/PollGroupWinSelect.hxx @@ -32,6 +32,8 @@ #include #include +/* ERROR is a WIN32 macro that poisons our namespace; this is a kludge + to allow us to use it anyway */ #ifdef ERROR #undef ERROR #endif diff --git a/src/event/SocketMonitor.hxx b/src/event/SocketMonitor.hxx index 941bf19c0..d63cab0ab 100644 --- a/src/event/SocketMonitor.hxx +++ b/src/event/SocketMonitor.hxx @@ -29,14 +29,6 @@ #include #include -#ifdef WIN32 -/* ERROR is a WIN32 macro that poisons our namespace; this is a kludge - to allow us to use it anyway */ -#ifdef ERROR -#undef ERROR -#endif -#endif - class EventLoop; /**