diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-14 16:40:44 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-17 21:09:04 -0500 |
commit | feec81e5717f904b687f17ace727bfbadc597209 (patch) | |
tree | 77fd180070685a9a47665d752f8f99afa5e93a9a /newlib/libc/stdio/fopencookie.c | |
parent | 5c78499ae2ae6ac28854b43a1ad73d917b40c62d (diff) | |
download | cygnal-feec81e5717f904b687f17ace727bfbadc597209.tar.gz cygnal-feec81e5717f904b687f17ace727bfbadc597209.tar.bz2 cygnal-feec81e5717f904b687f17ace727bfbadc597209.zip |
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/fopencookie.c')
-rw-r--r-- | newlib/libc/stdio/fopencookie.c | 1 |
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> |