blob: cddec1e708785d5e4182b834c35d91e012973c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* time.h
*
* Struct declaration for dealing with time.
*/
#ifndef _TIME_H_
#define _TIME_H_
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
#if defined(SIMULATOR) && !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED)
/* for non-win32 simulators */
typedef long time_t;
/* this define below is used by the mingw headers to prevent duplicate
typedefs */
#define _TIME_T_DEFINED
#define _TIME_T_DECLARED
time_t time(time_t *t);
struct tm *localtime(const time_t *timep);
#endif /* SIMULATOR */
#endif /* _TIME_H_ */
|