[git commit future 1/1] do not define _ISOC99_SOURCE in specific files

Khem Raj raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=c9ac7d50fc729d848e14c915af48139d9a169dce
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

This should come properly from features.h or the build.

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 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 ----
 .../linux/common/bits/uClibc_uintmaxtostr.h        |   10 ----------
 8 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/libc/stdio/_scanf.c b/libc/stdio/_scanf.c
index f38e72b..6a4d933 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 e501165..82eb862 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 3db8cdf..a1a7bdd 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 7d4bfea..f5cce58 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 cc57d14..c4c79e5 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 09909da..6ce04e1 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 e1721bf..bbea1ae 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 92633ff..49e26bf 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>
-- 
1.7.3.4



More information about the uClibc-cvs mailing list