Rev 4874 | Rev 6099 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4874 | Rev 4921 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #define __SYS_CONFIG_H__ |
2 | #define __SYS_CONFIG_H__ |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #include |
4 | #include |
Line -... | Line 5... | ||
- | 5 | #include |
|
- | 6 | ||
- | 7 | #ifdef __aarch64__ |
|
- | 8 | #define MALLOC_ALIGNMENT 16 |
|
5 | #include |
9 | #endif |
6 | 10 | ||
7 | /* exceptions first */ |
11 | /* exceptions first */ |
8 | #if defined(__H8500__) || defined(__W65__) |
12 | #if defined(__H8500__) || defined(__W65__) |
9 | #define __SMALL_BITFIELDS |
13 | #define __SMALL_BITFIELDS |
Line 139... | Line 143... | ||
139 | #define MALLOC_ALIGNMENT 8 |
143 | #define MALLOC_ALIGNMENT 8 |
140 | #define _POINTER_INT short |
144 | #define _POINTER_INT short |
141 | #define __BUFSIZ__ 16 |
145 | #define __BUFSIZ__ 16 |
142 | #define _REENT_SMALL |
146 | #define _REENT_SMALL |
143 | #endif |
147 | #endif |
- | 148 | ||
- | 149 | #if defined __MSP430__ |
|
- | 150 | #ifndef _REENT_SMALL |
|
- | 151 | #define _REENT_SMALL |
|
- | 152 | #endif |
|
- | 153 | ||
- | 154 | #define __SMALL_BITFIELDS |
|
- | 155 | ||
- | 156 | #ifdef __MSP430X_LARGE__ |
|
- | 157 | #define _POINTER_INT long |
|
- | 158 | #else |
|
- | 159 | #define _POINTER_INT int |
|
- | 160 | #endif |
|
- | 161 | #endif |
|
- | 162 | ||
144 | #ifdef __m32c__ |
163 | #ifdef __m32c__ |
145 | #define __SMALL_BITFIELDS |
164 | #define __SMALL_BITFIELDS |
146 | #undef INT_MAX |
165 | #undef INT_MAX |
147 | #undef UINT_MAX |
166 | #undef UINT_MAX |
148 | #define INT_MAX __INT_MAX__ |
167 | #define INT_MAX __INT_MAX__ |
Line 211... | Line 230... | ||
211 | #endif |
230 | #endif |
Line 212... | Line 231... | ||
212 | 231 | ||
213 | #if defined(__rtems__) |
232 | #if defined(__rtems__) |
214 | #define __FILENAME_MAX__ 255 |
233 | #define __FILENAME_MAX__ 255 |
- | 234 | #define _READ_WRITE_RETURN_TYPE _ssize_t |
|
- | 235 | #define __DYNAMIC_REENT__ |
|
215 | #define _READ_WRITE_RETURN_TYPE _ssize_t |
236 | #define _REENT_GLOBAL_ATEXIT |
Line 216... | Line 237... | ||
216 | #endif |
237 | #endif |
217 | 238 | ||
218 | #ifndef __EXPORT |
239 | #ifndef __EXPORT |
Line 227... | Line 248... | ||
227 | for read()/write() is "ssize_t" but legacy newlib code has been using |
248 | for read()/write() is "ssize_t" but legacy newlib code has been using |
228 | "int" for some time. If not specified, "int" is defaulted. */ |
249 | "int" for some time. If not specified, "int" is defaulted. */ |
229 | #ifndef _READ_WRITE_RETURN_TYPE |
250 | #ifndef _READ_WRITE_RETURN_TYPE |
230 | #define _READ_WRITE_RETURN_TYPE int |
251 | #define _READ_WRITE_RETURN_TYPE int |
231 | #endif |
252 | #endif |
- | 253 | /* Define `count' parameter of read/write routines. In POSIX, the `count' |
|
- | 254 | parameter is "size_t" but legacy newlib code has been using "int" for some |
|
- | 255 | time. If not specified, "int" is defaulted. */ |
|
- | 256 | #ifndef _READ_WRITE_BUFSIZE_TYPE |
|
- | 257 | #define _READ_WRITE_BUFSIZE_TYPE int |
|
- | 258 | #endif |
|
Line 232... | Line 259... | ||
232 | 259 | ||
233 | #ifndef __WCHAR_MAX__ |
260 | #ifndef __WCHAR_MAX__ |
234 | #if __INT_MAX__ == 32767 || defined (_WIN32) |
261 | #if __INT_MAX__ == 32767 || defined (_WIN32) |
235 | #define __WCHAR_MAX__ 0xffffu |
262 | #define __WCHAR_MAX__ 0xffffu |