From 84ba25226ca8f0bdc60d3c9a5af287ea5ea94301 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 14 Mar 2016 16:55:26 -0500 Subject: 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 --- newlib/libc/stdlib/efgcvt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/stdlib/efgcvt.c') 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: <>, <>, <>, <>, <>, <>, <>. */ +#define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED #include <_ansi.h> #include #include -- cgit v1.2.3