… | |
… | |
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 | #ifdef _WIN32 |
40 | #ifdef _WIN32 |
41 | |
|
|
42 | /* timeb.h is actually xsi legacy functionality */ |
|
|
43 | #include <sys/timeb.h> |
|
|
44 | |
41 | |
45 | /* note: the comment below could not be substantiated, but what would I care */ |
42 | /* note: the comment below could not be substantiated, but what would I care */ |
46 | /* MSDN says this is required to handle SIGFPE */ |
43 | /* MSDN says this is required to handle SIGFPE */ |
47 | /* my wild guess would be that using something floating-pointy is required */ |
44 | /* my wild guess would be that using something floating-pointy is required */ |
48 | /* for the crt to do something about it */ |
45 | /* for the crt to do something about it */ |
… | |
… | |
141 | return -1; |
138 | return -1; |
142 | } |
139 | } |
143 | |
140 | |
144 | #undef pipe |
141 | #undef pipe |
145 | #define pipe(filedes) ev_pipe (filedes) |
142 | #define pipe(filedes) ev_pipe (filedes) |
146 | |
143 | |
147 | #define EV_HAVE_EV_TIME 1 |
144 | #define EV_HAVE_EV_TIME 1 |
148 | ev_tstamp |
145 | ev_tstamp |
149 | ev_time (void) |
146 | ev_time (void) |
150 | { |
147 | { |
151 | FILETIME ft; |
148 | FILETIME ft; |