haiku/headers/compatibility/bsd/stdio.h
Adrien Destugues db7dcab7b1 asprintf should be available if _GNU_SOURCE is defined
As documented in the Linux manpage:
https://man7.org/linux/man-pages/man3/asprintf.3.html
Change-Id: I855b3310ae9111ddf48c13c26b9eb496c200accb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3554
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2020-12-28 23:09:21 +00:00

35 lines
544 B
C

/*
* Copyright 2006-2010 Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _BSD_STDIO_H_
#define _BSD_STDIO_H_
#include_next <stdio.h>
#include <features.h>
#if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE)
#ifdef __cplusplus
extern "C" {
#endif
char *fgetln(FILE *stream, size_t *_length);
int asprintf(char **ret, char const *format, ...) __PRINTFLIKE(2,3);
int vasprintf(char **ret, char const *format, va_list ap);
#ifdef __cplusplus
}
#endif
#endif
#endif /* _BSD_STDIO_H_ */