… | |
… | |
268 | # include <winsock.h> |
268 | # include <winsock.h> |
269 | #endif |
269 | #endif |
270 | |
270 | |
271 | #if EV_USE_EVENTFD |
271 | #if EV_USE_EVENTFD |
272 | /* our minimum requirement is glibc 2.7 which has the stub, but not the header */ |
272 | /* our minimum requirement is glibc 2.7 which has the stub, but not the header */ |
|
|
273 | # include <stdint.h> |
|
|
274 | # ifdef __cplusplus |
|
|
275 | extern "C" { |
|
|
276 | # endif |
273 | int eventfd (unsigned int initval, int flags); |
277 | int eventfd (unsigned int initval, int flags); |
|
|
278 | # ifdef __cplusplus |
|
|
279 | } |
|
|
280 | # endif |
274 | #endif |
281 | #endif |
275 | |
282 | |
276 | /**/ |
283 | /**/ |
277 | |
284 | |
278 | /* |
285 | /* |
… | |
… | |
293 | # define expect(expr,value) __builtin_expect ((expr),(value)) |
300 | # define expect(expr,value) __builtin_expect ((expr),(value)) |
294 | # define noinline __attribute__ ((noinline)) |
301 | # define noinline __attribute__ ((noinline)) |
295 | #else |
302 | #else |
296 | # define expect(expr,value) (expr) |
303 | # define expect(expr,value) (expr) |
297 | # define noinline |
304 | # define noinline |
298 | # if __STDC_VERSION__ < 199901L |
305 | # if __STDC_VERSION__ < 199901L && __GNUC__ < 2 |
299 | # define inline |
306 | # define inline |
300 | # endif |
307 | # endif |
301 | #endif |
308 | #endif |
302 | |
309 | |
303 | #define expect_false(expr) expect ((expr) != 0, 0) |
310 | #define expect_false(expr) expect ((expr) != 0, 0) |