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/tmpnam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newlib/libc/stdio/tmpnam.c') diff --git a/newlib/libc/stdio/tmpnam.c b/newlib/libc/stdio/tmpnam.c index 28b394f10..ec346c878 100644 --- a/newlib/libc/stdio/tmpnam.c +++ b/newlib/libc/stdio/tmpnam.c @@ -146,7 +146,8 @@ _DEFUN (_tmpnam_r, (p, s), if (s == NULL) { /* ANSI states we must use an internal static buffer if s is NULL */ - result = p->_emergency; + _REENT_CHECK_EMERGENCY(p); + result = _REENT_EMERGENCY(p); } else { -- cgit v1.2.3