4,6 → 4,10 |
#include <machine/ieeefp.h> /* floating point macros */ |
#include <sys/features.h> /* POSIX defs */ |
|
#ifdef __aarch64__ |
#define MALLOC_ALIGNMENT 16 |
#endif |
|
/* exceptions first */ |
#if defined(__H8500__) || defined(__W65__) |
#define __SMALL_BITFIELDS |
141,6 → 145,21 |
#define __BUFSIZ__ 16 |
#define _REENT_SMALL |
#endif |
|
#if defined __MSP430__ |
#ifndef _REENT_SMALL |
#define _REENT_SMALL |
#endif |
|
#define __SMALL_BITFIELDS |
|
#ifdef __MSP430X_LARGE__ |
#define _POINTER_INT long |
#else |
#define _POINTER_INT int |
#endif |
#endif |
|
#ifdef __m32c__ |
#define __SMALL_BITFIELDS |
#undef INT_MAX |
213,6 → 232,8 |
#if defined(__rtems__) |
#define __FILENAME_MAX__ 255 |
#define _READ_WRITE_RETURN_TYPE _ssize_t |
#define __DYNAMIC_REENT__ |
#define _REENT_GLOBAL_ATEXIT |
#endif |
|
#ifndef __EXPORT |
229,6 → 250,12 |
#ifndef _READ_WRITE_RETURN_TYPE |
#define _READ_WRITE_RETURN_TYPE int |
#endif |
/* Define `count' parameter of read/write routines. In POSIX, the `count' |
parameter is "size_t" but legacy newlib code has been using "int" for some |
time. If not specified, "int" is defaulted. */ |
#ifndef _READ_WRITE_BUFSIZE_TYPE |
#define _READ_WRITE_BUFSIZE_TYPE int |
#endif |
|
#ifndef __WCHAR_MAX__ |
#if __INT_MAX__ == 32767 || defined (_WIN32) |