summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-20 03:20:27 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:29 +0200
commiteedef37b4ad706b033fad74ae4de87e3cedaf4f2 (patch)
tree942442343fc4f595918aebc59db9b1fc089605e8 /libc
parent56023566de1169f19911097f27297c21134e1fa3 (diff)
do not define _ISOC99_SOURCE in specific files
This should come properly from features.h or the build. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/_scanf.c1
-rw-r--r--libc/stdio/_uintmaxtostr.c1
-rw-r--r--libc/stdio/_vfprintf.c1
-rw-r--r--libc/stdio/old_vfprintf.c2
-rw-r--r--libc/stdlib/_strtod.c1
-rw-r--r--libc/stdlib/stdlib.c1
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_fpmax.h4
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h10
8 files changed, 0 insertions, 21 deletions
diff --git a/libc/stdio/_scanf.c b/libc/stdio/_scanf.c
index 952853cfe..4b1541db1 100644
--- a/libc/stdio/_scanf.c
+++ b/libc/stdio/_scanf.c
@@ -43,7 +43,6 @@
* standards and from an official C standard defect report.
*/
-#define _ISOC99_SOURCE /* for LLONG_MAX primarily... */
#include <features.h>
#include "_stdio.h"
#include <stdlib.h>
diff --git a/libc/stdio/_uintmaxtostr.c b/libc/stdio/_uintmaxtostr.c
index e501165a9..82eb862e1 100644
--- a/libc/stdio/_uintmaxtostr.c
+++ b/libc/stdio/_uintmaxtostr.c
@@ -5,7 +5,6 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
-#define _ISOC99_SOURCE /* for ULLONG primarily... */
#include "_stdio.h"
#include <limits.h>
#include <locale.h>
diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c
index 3db8cdf67..a1a7bdd4d 100644
--- a/libc/stdio/_vfprintf.c
+++ b/libc/stdio/_vfprintf.c
@@ -88,7 +88,6 @@
* treats this as an error.
*/
-#define _ISOC99_SOURCE /* for ULLONG primarily... */
#include <features.h>
#include "_stdio.h"
#include <stdlib.h>
diff --git a/libc/stdio/old_vfprintf.c b/libc/stdio/old_vfprintf.c
index 7d4bfea6a..f5cce58f1 100644
--- a/libc/stdio/old_vfprintf.c
+++ b/libc/stdio/old_vfprintf.c
@@ -127,9 +127,7 @@
/**************************************************************************/
-#define _ISOC99_SOURCE /* for ULLONG primarily... */
#include "_stdio.h"
-/* #include <stdio.h> */
#include <stdarg.h>
#include <limits.h>
#include <stdint.h>
diff --git a/libc/stdlib/_strtod.c b/libc/stdlib/_strtod.c
index cc57d14b9..c4c79e511 100644
--- a/libc/stdlib/_strtod.c
+++ b/libc/stdlib/_strtod.c
@@ -95,7 +95,6 @@
/**********************************************************************/
-#define _ISOC99_SOURCE 1
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c
index dd31194a8..d3bdd6c39 100644
--- a/libc/stdlib/stdlib.c
+++ b/libc/stdlib/stdlib.c
@@ -32,7 +32,6 @@
* Add wscto{inttype} functions.
*/
-#define _ISOC99_SOURCE /* for ULLONG primarily... */
#include <limits.h>
#include <stdint.h>
#include <stdint.h>
diff --git a/libc/sysdeps/linux/common/bits/uClibc_fpmax.h b/libc/sysdeps/linux/common/bits/uClibc_fpmax.h
index e1721bf40..bbea1ae9d 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_fpmax.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_fpmax.h
@@ -12,10 +12,6 @@
#ifndef _UCLIBC_FPMAX_H
#define _UCLIBC_FPMAX_H
-#ifndef _ISOC99_SOURCE
-#define _ISOC99_SOURCE 1
-#endif
-
#include <features.h>
#include <float.h>
diff --git a/libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h b/libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h
index 92633ffa6..49e26bf3b 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h
@@ -28,16 +28,6 @@
#ifndef _UINTMAXTOSTR_H
#define _UINTMAXTOSTR_H 1
-#ifdef _FEATURES_H
-# ifndef __USE_ISOC99
-# error features was included without defining _ISOC99_SOURCE!
-# endif
-#else
-# ifndef _ISOC99_SOURCE
-# define _ISOC99_SOURCE
-# endif
-#endif
-
#include <features.h>
#include <limits.h>
#include <stdint.h>