diff options
| author | pixelherodev <pleasantatk@gmail.com> | 2019-08-28 05:19:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-28 05:19:21 -0400 |
| commit | 5d8f65a021c61af5a3e08a4aa01b4d63717c60f2 (patch) | |
| tree | 7ecb1e3a27502e1ed8b90006bf83542d50662288 | |
| parent | a99327f35031945f67ec85476ffbe1df2a645016 (diff) | |
Support the ESP8266 embedded hardware
| -rw-r--r-- | sokol_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sokol_time.h b/sokol_time.h index bcfcf489..e1f24fd6 100644 --- a/sokol_time.h +++ b/sokol_time.h @@ -164,6 +164,10 @@ typedef struct { double start; } _stm_state_t; #else /* anything else, this will need more care for non-Linux platforms */ +#ifdef ESP8266 +// On the ESP8266, clock_gettime ignores the first argument and CLOCK_MONOTONIC isn't defined +#define CLOCK_MONOTONIC 0 +#endif #include <time.h> typedef struct { uint32_t initialized; |