rockbox/firmware/include/time.h
Frank Gevaerts 5d22e3cbdd Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes FS#9327
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18362 a1c6a512-1295-4272-9138-f99709370657
2008-08-29 21:08:38 +00:00

42 lines
650 B
C

/*
* time.h
*
* Struct declaration for dealing with time.
*/
#ifndef _TIME_H_
#define _TIME_H_
#ifdef WPSEDITOR
#include <sys/types.h>
#include <time.h>
#endif
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(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED)
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_ */