--- libev/ev.h 2007/11/01 11:55:54 1.18 +++ libev/ev.h 2007/11/01 13:11:12 1.19 @@ -30,6 +30,10 @@ #ifndef EV_H #define EV_H +#ifdef __cplusplus +extern "C" { +#endif + typedef double ev_tstamp; /* eventmask, revents, events... */ @@ -245,5 +249,9 @@ void ev_child_stop (struct ev_child *w); #endif +#ifdef __cplusplus +} +#endif + #endif