From eedef37b4ad706b033fad74ae4de87e3cedaf4f2 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 20 Mar 2011 03:20:27 +0100 Subject: do not define _ISOC99_SOURCE in specific files This should come properly from features.h or the build. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/stdio/_scanf.c | 1 - libc/stdio/_uintmaxtostr.c | 1 - libc/stdio/_vfprintf.c | 1 - libc/stdio/old_vfprintf.c | 2 -- libc/stdlib/_strtod.c | 1 - libc/stdlib/stdlib.c | 1 - libc/sysdeps/linux/common/bits/uClibc_fpmax.h | 4 ---- libc/sysdeps/linux/common/bits/uClibc_uintmaxtostr.h | 10 ---------- 8 files changed, 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 #include "_stdio.h" #include 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 #include 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 #include "_stdio.h" #include 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 */ #include #include #include 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 #include #include 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 #include #include 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 #include 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 #include #include -- cgit v1.2.3