aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-18 04:29:40 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-18 04:29:40 +0200
commitd4bdf2986022f69d6d2962c8e9ca05c79e7e0087 (patch)
treea3cdb37cee5a03b08382ca117a3598cde2a09cc6 /include/stdio.h
parentthe pointer returned by malloc is aligned (diff)
downloadslibc-d4bdf2986022f69d6d2962c8e9ca05c79e7e0087.tar.gz
slibc-d4bdf2986022f69d6d2962c8e9ca05c79e7e0087.tar.bz2
slibc-d4bdf2986022f69d6d2962c8e9ca05c79e7e0087.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/stdio.h6
1 files changed, 3 insertions, 3 deletions
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; \