Since ev_now() not available if EV_MULTIPLICITY is not defined, it has not
much sense having a ev::now() that calls an inexistent ev_now() ;)

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
El poco sol que entra, me deja ciego
Pero ni siquiera entibia mis baldozas frías
Aquí donde todo es frío y casi muerto
Author: Leandro Lucarella <[EMAIL PROTECTED]>
Date:   Fri Jan 11 11:49:03 2008 -0200

    Only compile ev::now() if EV_MULTIPLICITY is defined.
    
    Since ev_now() not available otherwise, it has not much sense having a
    ev::now() that calls an inexistent ev_now() ;)

diff --git a/ev++.h b/ev++.h
index e447998..97e015c 100644
--- a/ev++.h
+++ b/ev++.h
@@ -163,10 +163,12 @@ namespace ev {
 
   typedef ev_tstamp tstamp;
 
+  #if EV_MULTIPLICITY
   inline ev_tstamp now (EV_P)
   {
     return ev_now (EV_A);
   }
+  #endif
 
   #if EV_MULTIPLICITY
     #define EV_CONSTRUCT                                                                \
_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to