diff options
Diffstat (limited to 'thirdparties/wince/include/wcecompat/_time.h')
-rw-r--r-- | thirdparties/wince/include/wcecompat/_time.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/thirdparties/wince/include/wcecompat/_time.h b/thirdparties/wince/include/wcecompat/_time.h new file mode 100644 index 0000000..83edf8b --- /dev/null +++ b/thirdparties/wince/include/wcecompat/_time.h @@ -0,0 +1,62 @@ +/* wcecompat: Windows CE C Runtime Library "compatibility" library. + * + * Copyright (C) 2001-2002 Essemer Pty Ltd. All rights reserved. + * http://www.essemer.com.au/ + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef __wcecompat__TIME_H__ +#define __wcecompat__TIME_H__ + + +#ifdef __cplusplus +extern "C" { +#endif + + +#include <stdlib.h> // time_t defined there +//typedef int time_t; + +typedef unsigned long clock_t; +#define CLOCKS_PER_SEC (1000) + +time_t time(time_t* t); +clock_t __cdecl clock(void); + +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; +}; + +struct tm* localtime(const time_t* clock); +struct tm * __cdecl gmtime(const time_t *clock); + + +#ifdef __cplusplus +} +#endif + + +#endif // __wcecompat__TIME_H__ |