summaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-12-12 05:09:18 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-12-12 05:09:18 +0000
commit571744447c23f91feb6439948f3a619aca850dfb (patch)
tree996c6f90721d69494683ae213ec22784d02a899a /src/stdlib
parentac45692a53a1b8d2ede329d91652d43c1fb5dc8d (diff)
downloadmusl-571744447c23f91feb6439948f3a619aca850dfb.tar.gz
include cleanups: remove unused headers and add feature test macros
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/ecvt.c1
-rw-r--r--src/stdlib/gcvt.c1
-rw-r--r--src/stdlib/wcstod.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/stdlib/ecvt.c b/src/stdlib/ecvt.c
index 79c3de63..797b664e 100644
--- a/src/stdlib/ecvt.c
+++ b/src/stdlib/ecvt.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/stdlib/gcvt.c b/src/stdlib/gcvt.c
index 6c075e25..f29bc304 100644
--- a/src/stdlib/gcvt.c
+++ b/src/stdlib/gcvt.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/stdlib/wcstod.c b/src/stdlib/wcstod.c
index 83f308d3..26fe9af8 100644
--- a/src/stdlib/wcstod.c
+++ b/src/stdlib/wcstod.c
@@ -1,6 +1,7 @@
#include "shgetc.h"
#include "floatscan.h"
#include "stdio_impl.h"
+#include <wchar.h>
#include <wctype.h>
/* This read function heavily cheats. It knows: