summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/rtems/crt0.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-15 13:44:28 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 14:51:40 +0200
commit3ad9b2fcbab86ad58224c91619782fab2f17f126 (patch)
treef01b801887fe9c6fcc5b0f7bd0e7a9d1bdd0dd72 /newlib/libc/sys/rtems/crt0.c
parent40928e19e4a5b0a1a6e60bec658a70961feb93b7 (diff)
downloadcygnal-3ad9b2fcbab86ad58224c91619782fab2f17f126.tar.gz
cygnal-3ad9b2fcbab86ad58224c91619782fab2f17f126.tar.bz2
cygnal-3ad9b2fcbab86ad58224c91619782fab2f17f126.zip
Provide __size_t via <sys/_types.h>
Various FreeBSD source and header files need a typedef __size_t via <sys/_types.h>. Unfortunately the GCC provided <stddef.h> uses #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \ || defined(__DragonFly__) \ || defined(__FreeBSD_kernel__) /* __size_t is a typedef on FreeBSD 5, must not trash it. */ #elif defined (__VMS__) /* __size_t is also a typedef on VMS. */ #else #define __size_t #endif and therefore defines __size_t on Newlib targets which would trash a __size_t typedef. Include <stddef.h> before <sys/_types.h> in <sys/types.h> and undefine __size_t in <sys/_types.h> as a workaround. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/sys/rtems/crt0.c')
0 files changed, 0 insertions, 0 deletions