From 826b5591dd604ef68abadff7c8cb7c19e221b9af Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 15 Mar 2007 21:32:13 +0000 Subject: 2007-03-15 Jeff Johnston * configure.in: Add new --enable-newlib-reent-small option. * configure: Regenerated. * acconfig.h: Add _WANT_REENT_SMALL. * newlib.hin: Regenerated minus PACKAGE macros to add _WANT_REENT_SMALL macro. * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL if not already set. * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if there is no buffer. * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to use reentrant pointer passed in when resetting the file pointer to one of the std streams. --- newlib/libc/include/sys/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'newlib/libc/include/sys/config.h') diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 58305d4a8..0ac2b4ec8 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -202,4 +202,12 @@ #endif #endif +/* See if small reent asked for at configuration time and + is not chosen by the platform by default. */ +#ifdef _WANT_REENT_SMALL +#ifndef _REENT_SMALL +#define _REENT_SMALL +#endif +#endif + #endif /* __SYS_CONFIG_H__ */ -- cgit v1.2.3