Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-15 00:40:44 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 05:09:04 +0300
commitfeec81e5717f904b687f17ace727bfbadc597209 (patch)
tree77fd180070685a9a47665d752f8f99afa5e93a9a /newlib/libc/stdio
parent5c78499ae2ae6ac28854b43a1ad73d917b40c62d (diff)
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 <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/fopencookie.c1
1 files changed, 1 insertions, 0 deletions
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 <<funopen>> interface from BSD.
Supporting OS subroutines required: <<sbrk>>.
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <sys/lock.h>