Repository navigation
Commit 523b06d
authored
timer: proper way to check POSIX timers support (#136)
The _POSIX_TIMERS macros can be used to determine the degree of a
host's support for the posix timers API.
The POSIX definition (2018 edition) says that:
_POSIX_TIMERS
The implementation supports timers. This symbol shall always
be set to the value 200809L.
It's defined in the <unistd.h> header.
Tested on esp32, pico and teensy4.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>1 parent 48096f8 commit 523b06d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
0 commit comments