]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Wed, 9 May 2012 16:50:23 +0000 (16:50 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Wed, 9 May 2012 16:50:23 +0000 (16:50 +0000)
ev++.h
ev.c

diff --git a/ev++.h b/ev++.h
index c5a0896bfd5f81b78d570178dc70791aa186ce8b..283f6ebe12fa516be9d177e43681458159c5cd67 100644 (file)
--- 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 3a9997ba2ea4ed5de8290658e82a95b9879816c7..57b2798b36be644a950c091d5ed36219b74df155 100644 (file)
--- a/ev.c
+++ b/ev.c
 #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