Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
71 theseven 1
/*
2
 * time.h
3
 * 
4
 * Struct declaration for dealing with time.
5
 */
6
 
7
#ifndef _TIME_H_
8
#define _TIME_H_
9
 
113 theseven 10
#include "../../global.h"
71 theseven 11
 
12
struct tm
13
{
14
  int   tm_sec;
15
  int   tm_min;
16
  int   tm_hour;
17
  int   tm_mday;
18
  int   tm_mon;
19
  int   tm_year;
20
  int   tm_wday;
21
  int   tm_yday;
22
  int   tm_isdst;
23
};
24
 
25
#if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED)
26
typedef long time_t;
27
 
28
/* this define below is used by the mingw headers to prevent duplicate
29
   typedefs */
30
#define _TIME_T_DEFINED
31
#define _TIME_T_DECLARED
32
time_t time(time_t *t);
33
struct tm *localtime(const time_t *timep);
34
time_t mktime(struct tm *t);
35
 
36
#endif /* SIMULATOR */
37
 
38
#ifdef __PCTOOL__
39
/* this time.h does not define struct timespec,
40
   so tell sys/stat.h not to use it */
41
#undef __USE_MISC  
42
#endif
43
 
44
#endif /* _TIME_H_ */
45
 
46