forked from len0rd/rockbox
improve FreeBSD support a little
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8884 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ccd0e7451d
commit
f2fe4e0c4c
3 changed files with 8 additions and 6 deletions
|
@ -20,13 +20,14 @@ struct tm
|
|||
int tm_isdst;
|
||||
};
|
||||
|
||||
#if defined(SIMULATOR) && !defined(_TIME_T_DEFINED)
|
||||
#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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue