summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev++.h6
-rw-r--r--ev.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/ev++.h b/ev++.h
index c5a0896..283f6eb 100644
--- a/ev++.h
+++ b/ev++.h
@@ -286,7 +286,7 @@ namespace ev {
template<class K, void (K::*method)(int)>
static void method_thunk (int revents, void *arg)
{
- static_cast<K *>(arg)->*method
+ (static_cast<K *>(arg)->*method)
(revents);
}
@@ -300,7 +300,7 @@ namespace ev {
template<class K, void (K::*method)()>
static void method_noargs_thunk (int revents, void *arg)
{
- static_cast<K *>(arg)->*method
+ (static_cast<K *>(arg)->*method)
();
}
@@ -513,7 +513,7 @@ namespace ev {
void feed_event (int revents) throw ()
{
- ev_feed_event (EV_A_ static_cast<const ev_watcher *>(this), revents);
+ ev_feed_event (EV_A_ static_cast<ev_watcher *>(this), revents);
}
};
diff --git a/ev.c b/ev.c
index 3a9997b..57b2798 100644
--- a/ev.c
+++ b/ev.c
@@ -203,8 +203,8 @@
#else
# include <io.h>
# define WIN32_LEAN_AND_MEAN
-# include <windows.h>
# include <winsock2.h>
+# include <windows.h>
# ifndef EV_SELECT_IS_WINSOCKET
# define EV_SELECT_IS_WINSOCKET 1
# endif