Browse Source

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>
Peter S. Mazinger 13 years ago
parent
commit
eedef37b4a

+ 0 - 1
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>

+ 0 - 1
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>

+ 0 - 1
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>

+ 0 - 2
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>

+ 0 - 1
libc/stdlib/_strtod.c

@@ -95,7 +95,6 @@
 
 /**********************************************************************/
 
-#define _ISOC99_SOURCE 1
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>

+ 0 - 1
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>

+ 0 - 4
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>
 

+ 0 - 10
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>