diff options
Diffstat (limited to 'firmware/include/time.h')
-rw-r--r-- | firmware/include/time.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/time.h b/firmware/include/time.h index 5213468662..267face71b 100644 --- a/firmware/include/time.h +++ b/firmware/include/time.h | |||
@@ -20,5 +20,16 @@ struct tm | |||
20 | int tm_isdst; | 20 | int tm_isdst; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | #if defined(SIMULATOR) && !defined(_TIME_T_DEFINED) | ||
24 | /* for non-win32 simulators */ | ||
25 | typedef long time_t; | ||
26 | |||
27 | /* this define below is used by the mingw headers to prevent duplicate | ||
28 | typedefs */ | ||
29 | #define _TIME_T_DEFINED | ||
30 | time_t time(time_t *t); | ||
31 | |||
32 | #endif | ||
33 | |||
23 | #endif /* _TIME_H_ */ | 34 | #endif /* _TIME_H_ */ |
24 | 35 | ||