diff options
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/time.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/firmware/include/time.h b/firmware/include/time.h index e3517e725b..5213468662 100644 --- a/firmware/include/time.h +++ b/firmware/include/time.h | |||
@@ -1,33 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * time.h | 2 | * time.h |
3 | * | 3 | * |
4 | * Struct and function declarations for dealing with time. | 4 | * Struct declaration for dealing with time. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef _TIME_H_ | 7 | #ifndef _TIME_H_ |
8 | #define _TIME_H_ | 8 | #define _TIME_H_ |
9 | 9 | ||
10 | #include "_ansi.h" | ||
11 | |||
12 | #ifdef __cplusplus | ||
13 | extern "C" { | ||
14 | #endif | ||
15 | |||
16 | #ifndef NULL | ||
17 | #define NULL 0 | ||
18 | #endif | ||
19 | |||
20 | #ifndef _CLOCKS_PER_SEC_ | ||
21 | #define _CLOCKS_PER_SEC_ 1000 | ||
22 | #endif | ||
23 | |||
24 | #define CLOCKS_PER_SEC _CLOCKS_PER_SEC_ | ||
25 | #define CLK_TCK CLOCKS_PER_SEC | ||
26 | #define __need_size_t | ||
27 | #include <stddef.h> | ||
28 | |||
29 | #include <sys/types.h> | ||
30 | |||
31 | struct tm | 10 | struct tm |
32 | { | 11 | { |
33 | int tm_sec; | 12 | int tm_sec; |
@@ -41,8 +20,5 @@ struct tm | |||
41 | int tm_isdst; | 20 | int tm_isdst; |
42 | }; | 21 | }; |
43 | 22 | ||
44 | #ifdef __cplusplus | ||
45 | } | ||
46 | #endif | ||
47 | #endif /* _TIME_H_ */ | 23 | #endif /* _TIME_H_ */ |
48 | 24 | ||