From feec81e5717f904b687f17ace727bfbadc597209 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 14 Mar 2016 16:40:44 -0500 Subject: Feature test macros overhaul: stdio.h Throughout, remove references to __STRICT_ANSI__ and use the proper internal macros and versions for C99, POSIX, ATFILE for the various *at functions, or LARGEFILE for fseeko and ftello. [v]asprintf are GNU extensions, but the *iprintf, *iscanf, and *asnprintf functions are unique to newlib. getw and putw were removed from POSIX.1-2001. funopen is BSD, and fopencookie is GNU. Signed-off-by: Yaakov Selkowitz --- newlib/libc/stdio/fopencookie.c | 1 + 1 file changed, 1 insertion(+) (limited to 'newlib/libc/stdio/fopencookie.c') diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c index 588fd4879..3697b48d7 100644 --- a/newlib/libc/stdio/fopencookie.c +++ b/newlib/libc/stdio/fopencookie.c @@ -82,6 +82,7 @@ It is not portable. See also the <> interface from BSD. Supporting OS subroutines required: <>. */ +#define _GNU_SOURCE #include #include #include -- cgit v1.2.3