… | |
… | |
35 | * and other provisions required by the GPL. If you do not delete the |
35 | * and other provisions required by the GPL. If you do not delete the |
36 | * provisions above, a recipient may use your version of this file under |
36 | * provisions above, a recipient may use your version of this file under |
37 | * either the BSD or the GPL. |
37 | * either the BSD or the GPL. |
38 | */ |
38 | */ |
39 | |
39 | |
40 | #ifndef EVENT_H__ |
40 | #ifndef EVENT_H_ |
41 | #define EVENT_H__ |
41 | #define EVENT_H_ |
42 | |
42 | |
43 | #ifdef EV_H |
43 | #ifdef EV_H |
44 | # include EV_H |
44 | # include EV_H |
45 | #else |
45 | #else |
46 | # include "ev.h" |
46 | # include "ev.h" |
47 | #endif |
47 | #endif |
48 | |
48 | |
49 | #ifdef __cplusplus |
49 | #ifdef __cplusplus |
50 | extern "C" { |
50 | extern "C" { |
|
|
51 | #endif |
|
|
52 | |
|
|
53 | /* we need sys/time.h for struct timeval only */ |
|
|
54 | #if !defined (WIN32) || defined (__MINGW32__) |
|
|
55 | # include <time.h> /* mingw seems to need this, for whatever reason */ |
|
|
56 | # include <sys/time.h> |
51 | #endif |
57 | #endif |
52 | |
58 | |
53 | struct event_base; |
59 | struct event_base; |
54 | |
60 | |
55 | #define EVLIST_TIMEOUT 0x01 |
61 | #define EVLIST_TIMEOUT 0x01 |