First commit:
[kugel-rb.git] / firmware / include / time.h
blob23f72fd93d6c4375222e6b74f529ad4aac8c734b
1 /*
2 * time.h
3 *
4 * Struct declaration for dealing with time.
5 */
7 #ifndef _TIME_H_
8 #define _TIME_H_
10 struct tm
12 int tm_sec;
13 int tm_min;
14 int tm_hour;
15 int tm_mday;
16 int tm_mon;
17 int tm_year;
18 int tm_wday;
19 int tm_yday;
20 int tm_isdst;
23 #if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED)
24 typedef long time_t;
26 /* this define below is used by the mingw headers to prevent duplicate
27 typedefs */
28 #define _TIME_T_DEFINED
29 #define _TIME_T_DECLARED
30 time_t time(time_t *t);
31 struct tm *localtime(const time_t *timep);
33 #endif /* SIMULATOR */
35 #endif /* _TIME_H_ */