aboutsummaryrefslogtreecommitdiff
path: root/libio/libioP.h
diff options
context:
space:
mode:
Diffstat (limited to 'libio/libioP.h')
-rw-r--r--libio/libioP.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/libioP.h b/libio/libioP.h
index e3356f4..d23436a 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 */