diff options
author | root <root> | 2007-12-08 14:27:38 +0000 |
---|---|---|
committer | root <root> | 2007-12-08 14:27:38 +0000 |
commit | 57e6fe17689de1646a53a20a46374936391db3e2 (patch) | |
tree | 8db7b035c9650fe2f4042dc5749e724fda6fca76 /ev.c | |
parent | 480621758fe1687120978562a553920ed46e1b7e (diff) |
fix c++ interface
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -224,23 +224,24 @@ extern "C" { #if __GNUC__ >= 3 # define expect(expr,value) __builtin_expect ((expr),(value)) -# define inline_size static inline /* inline for codesize */ -# if EV_MINIMAL -# define noinline __attribute__ ((noinline)) -# define inline_speed static noinline -# else -# define noinline -# define inline_speed static inline -# endif +# define noinline __attribute__ ((noinline)) #else # define expect(expr,value) (expr) -# define inline_speed static -# define inline_size static # define noinline +# if __STDC_VERSION__ < 199901L +# define inline +# endif #endif #define expect_false(expr) expect ((expr) != 0, 0) #define expect_true(expr) expect ((expr) != 0, 1) +#define inline_size static inline + +#if EV_MINIMAL +# define inline_speed static noinline +#else +# define inline_speed static inline +#endif #define NUMPRI (EV_MAXPRI - EV_MINPRI + 1) #define ABSPRI(w) (((W)w)->priority - EV_MINPRI) |