From af507979298d67f1b339a65e448e03bda4bf0044 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 27 Jan 2000 01:40:33 +0000 Subject: Update. 2000-01-26 David McCann * libio/libioP.h [!_G_HAVE_MMAP]: Define ALLOC_WBUF. --- libio/libioP.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libio') diff --git a/libio/libioP.h b/libio/libioP.h index e3356f4a7e..d23436ab26 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -640,6 +640,12 @@ extern void (*_IO_cleanup_registration_needed) __PMT ((void)); if ((_B) == NULL) \ return (_R); \ } while (0) +# define ALLOC_WBUF(_B, _S, _R) \ + do { \ + (_B) = (wchar_t *)malloc(_S); \ + if ((_B) == NULL) \ + return (_R); \ + } while (0) #endif /* _G_HAVE_MMAP */ -- cgit v1.2.3