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/sys/types.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/sys/types.h')
-rw-r--r-- | firmware/include/sys/types.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/firmware/include/sys/types.h b/firmware/include/sys/types.h index 95181dab19..07f9e9c8c7 100644 --- a/firmware/include/sys/types.h +++ b/firmware/include/sys/types.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2005 by Daniel Stenberg | 10 | * Copyright (C) 2010 Thomas Martitz |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
@@ -19,8 +19,17 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #ifndef _SYS_TYPES_H_ | 22 | /** |
23 | #define _SYS_TYPES_H_ | 23 | * provide a sys/types.h for compatibility with imported code |
24 | **/ | ||
25 | |||
26 | #ifndef __TYPES_H__ | ||
27 | #define __TYPES_H__ | ||
28 | |||
29 | |||
30 | /* | ||
31 | * include string.h for size_t for convinence */ | ||
32 | #include <string.h> | ||
24 | 33 | ||
25 | #if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t) && !defined(_SSIZE_T_DECLARED) | 34 | #if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t) && !defined(_SSIZE_T_DECLARED) |
26 | #define __ssize_t_defined | 35 | #define __ssize_t_defined |
@@ -43,10 +52,4 @@ typedef signed long off_t; | |||
43 | typedef unsigned int mode_t; | 52 | typedef unsigned int mode_t; |
44 | #endif | 53 | #endif |
45 | 54 | ||
46 | #if !defined(_SIZE_T) && !defined(_SIZE_T_DECLARED) | 55 | #endif /* __TYPES_H__ */ |
47 | #define _SIZE_T | ||
48 | #define _SIZE_T_DECLARED | ||
49 | typedef unsigned long size_t; | ||
50 | #endif | ||
51 | |||
52 | #endif /* _SYS_TYPES_H */ | ||