From d4bdf2986022f69d6d2962c8e9ca05c79e7e0087 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Oct 2015 04:29:40 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/stdio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index 5a0173d..3fa1bfe 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -246,7 +246,7 @@ int asprintf(char** restrict, const char* restrict, ...) * * @throws EINVAL `format` contained unsupported formatting codes. */ -int asprintfa(buffer, format, ...) \ +#define asprintfa(buffer, format, ...) \ ({ \ ssize_t __size; \ int __r; \ @@ -254,7 +254,7 @@ int asprintfa(buffer, format, ...) \ if (*buffer = NULL, __size += 1, __r >= 0) \ *buffer = __builtin_alloca((size_t)__size * sizeof(char)), \ __r = sprintf(*buffer, format, ##__VA_ARGS__); \ - __r; \ + __r; \ }) # endif @@ -693,7 +693,7 @@ int aswprintf(wchar_t** restrict, const wchar_t* restrict, ...) * * @throws EINVAL `format` contained unsupported formatting codes. */ -int aswprintfa(buffer, format, ...) \ +#define aswprintfa(buffer, format, ...) \ ({ \ ssize_t __size; \ int __r; \ -- cgit v1.2.3-70-g09d2