diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /firmware/include/time.h | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/time.h')
-rw-r--r-- | firmware/include/time.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/firmware/include/time.h b/firmware/include/time.h deleted file mode 100644 index 28680494f9..0000000000 --- a/firmware/include/time.h +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | * time.h | ||
3 | * | ||
4 | * Struct declaration for dealing with time. | ||
5 | */ | ||
6 | |||
7 | #ifndef _TIME_H_ | ||
8 | #define _TIME_H_ | ||
9 | |||
10 | #ifdef WPSEDITOR | ||
11 | #include <sys/types.h> | ||
12 | #include <time.h> | ||
13 | #endif | ||
14 | |||
15 | struct tm | ||
16 | { | ||
17 | int tm_sec; | ||
18 | int tm_min; | ||
19 | int tm_hour; | ||
20 | int tm_mday; | ||
21 | int tm_mon; | ||
22 | int tm_year; | ||
23 | int tm_wday; | ||
24 | int tm_yday; | ||
25 | int tm_isdst; | ||
26 | }; | ||
27 | |||
28 | #if !defined(_TIME_T_DEFINED) && !defined(_TIME_T_DECLARED) | ||
29 | typedef long time_t; | ||
30 | |||
31 | /* this define below is used by the mingw headers to prevent duplicate | ||
32 | typedefs */ | ||
33 | #define _TIME_T_DEFINED | ||
34 | #define _TIME_T_DECLARED | ||
35 | time_t time(time_t *t); | ||
36 | struct tm *localtime(const time_t *timep); | ||
37 | |||
38 | #endif /* SIMULATOR */ | ||
39 | |||
40 | #ifdef __PCTOOL__ | ||
41 | /* this time.h does not define struct timespec, | ||
42 | so tell sys/stat.h not to use it */ | ||
43 | #undef __USE_MISC | ||
44 | #endif | ||
45 | |||
46 | |||
47 | #endif /* _TIME_H_ */ | ||
48 | |||
49 | |||