#ifndef _TIME_WINCE_H
#define _TIME_WINCE_H 1
#include <winbase.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int daylight;
extern int _timezone, timezone;
extern char *tzname[2];
#if 0
#define _DAY_SEC (24L * 60L * 60L)
#define _YEAR_SEC (365L * _DAY_SEC)
#define _FOUR_YEAR_SEC (1461L * _DAY_SEC)
#define _DEC_SEC 315532800L
#define _BASE_YEAR 70L
#define _BASE_DOW 4
#define _LEAP_YEAR_ADJUST 17L
#define _MAX_YEAR 138L
#endif
#ifndef _TM_DEFINED
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;
};
#define _TM_DEFINED
#endif
typedef struct {
int yr; int yd; long ms; } transitionTime;
time_t mktime(struct tm* pt);
time_t time( time_t *timer );
struct tm *localtime(const time_t *ptime);
struct tm *gmtime(const time_t *tod);
char* ctime( const time_t *t );
char* asctime(const struct tm *tptr);
void tzset();
int clock(void);
time_t wce_FILETIME2time_t(const FILETIME* pf);
#ifdef __cplusplus
};
#endif
#endif