From 8195aff714f2ea5d680a5129a1d54af388e90355 Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Sun, 3 Feb 2002 09:24:18 +0000 Subject: * implement a new `struct _reent' that is significantly smaller. use this if _REENT_SMALL is defined in config.h. define this for xstormy16. --- newlib/libc/stdio/perror.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/libc/stdio/perror.c') diff --git a/newlib/libc/stdio/perror.c b/newlib/libc/stdio/perror.c index abb595ba9..19354c112 100644 --- a/newlib/libc/stdio/perror.c +++ b/newlib/libc/stdio/perror.c @@ -49,6 +49,8 @@ Supporting OS subroutines required: <>, <>, <>, #include #include +#include "local.h" + void _DEFUN (_perror_r, (ptr, s), struct _reent *ptr _AND @@ -56,6 +58,7 @@ _DEFUN (_perror_r, (ptr, s), { char *error; + _REENT_SMALL_CHECK_INIT(_stderr_r (ptr)); if (s != NULL && *s != '\0') { fputs (s, _stderr_r (ptr)); -- cgit v1.2.3