4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 20:39:33 +08:00
Sebastian Huber 3ad9b2fcba 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>
2016-04-15 14:51:40 +02:00
..
2016-04-15 14:51:39 +02:00
2016-04-15 14:51:39 +02:00
2016-04-15 14:51:40 +02:00
2015-12-14 15:44:28 +01:00
2016-04-15 14:51:39 +02:00
2016-04-15 14:51:39 +02:00
2015-04-23 21:57:06 +02:00
2016-04-15 14:51:40 +02:00
2015-05-28 16:40:43 +02:00