… | … | ||
---|---|---|---|
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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |