diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-14 16:55:26 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-17 21:09:06 -0500 |
commit | 84ba25226ca8f0bdc60d3c9a5af287ea5ea94301 (patch) | |
tree | f391429cf8c4ca239825b2f563bcf43b3f8f7ddb /newlib/libc/stdlib/efgcvt.c | |
parent | feec81e5717f904b687f17ace727bfbadc597209 (diff) | |
download | cygnal-84ba25226ca8f0bdc60d3c9a5af287ea5ea94301.tar.gz cygnal-84ba25226ca8f0bdc60d3c9a5af287ea5ea94301.tar.bz2 cygnal-84ba25226ca8f0bdc60d3c9a5af287ea5ea94301.zip |
Feature test macros overhaul: stdlib.h
Throughout, simplify the C99/C11 conditionals, and replace
__STRICT_ANSI__ with the proper internal POSIX macros. The _*_r
reentrant functions need not be guarded (and most haven't been) because
such names in the global scope are reserved to the implementation.
atoff is unique to newlib.
dtoa is not actually exported (_dtoa_r is used internally), is
nonstandard, and the declaration conflicts with the code included in
MySQL, NSPR, and SpiderMonkey.
mktemp was removed in POSIX.1-2001.
The qsort_r declarations are reordered so that the GNU version retains
precedence.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdlib/efgcvt.c')
-rw-r--r-- | newlib/libc/stdlib/efgcvt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/efgcvt.c b/newlib/libc/stdlib/efgcvt.c index 5d6e1aea3..b7d9812f6 100644 --- a/newlib/libc/stdlib/efgcvt.c +++ b/newlib/libc/stdlib/efgcvt.c @@ -131,6 +131,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>, <<read>>, <<sbrk>>, <<write>>. */ +#define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED #include <_ansi.h> #include <reent.h> #include <stdio.h> |