… | |
… | |
164 | #endif |
164 | #endif |
165 | |
165 | |
166 | /* this block tries to deduce configuration from header-defined symbols and defaults */ |
166 | /* this block tries to deduce configuration from header-defined symbols and defaults */ |
167 | |
167 | |
168 | #ifndef EV_USE_MONOTONIC |
168 | #ifndef EV_USE_MONOTONIC |
|
|
169 | # if defined (_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0 |
|
|
170 | # define EV_USE_MONOTONIC 1 |
|
|
171 | # else |
169 | # define EV_USE_MONOTONIC 0 |
172 | # define EV_USE_MONOTONIC 0 |
|
|
173 | # endif |
170 | #endif |
174 | #endif |
171 | |
175 | |
172 | #ifndef EV_USE_REALTIME |
176 | #ifndef EV_USE_REALTIME |
173 | # define EV_USE_REALTIME 0 |
177 | # define EV_USE_REALTIME 0 |
174 | #endif |
178 | #endif |
175 | |
179 | |
176 | #ifndef EV_USE_NANOSLEEP |
180 | #ifndef EV_USE_NANOSLEEP |
|
|
181 | # if _POSIX_C_SOURCE >= 199309L |
|
|
182 | # define EV_USE_NANOSLEEP 1 |
|
|
183 | # else |
177 | # define EV_USE_NANOSLEEP 0 |
184 | # define EV_USE_NANOSLEEP 0 |
|
|
185 | # endif |
178 | #endif |
186 | #endif |
179 | |
187 | |
180 | #ifndef EV_USE_SELECT |
188 | #ifndef EV_USE_SELECT |
181 | # define EV_USE_SELECT 1 |
189 | # define EV_USE_SELECT 1 |
182 | #endif |
190 | #endif |