about summary refs log tree commit diff
path: root/include/features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-31 17:37:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-31 17:37:43 +0000
commitec751a23c0989ae9665ef268f6ef44b99fd1939f (patch)
tree1cbae626b385a826da82d4bf8c2955de40a7fd59 /include/features.h
parent8adcb4a8ede2176b0550fc49c74de3c4a0320b5e (diff)
downloadglibc-ec751a23c0989ae9665ef268f6ef44b99fd1939f.tar.gz
glibc-ec751a23c0989ae9665ef268f6ef44b99fd1939f.tar.xz
glibc-ec751a23c0989ae9665ef268f6ef44b99fd1939f.zip
Update.
1999-10-31  Ulrich Drepper  <drepper@cygnus.com>

	* includes/features.h: Replace __USE_ISOC9X by __USE_ISOC99 and also
	recognize _ISOC99_SOURCE.
	* libio/stdio.h: Likewise.
	* math/math.h: Likewise.
	* math/bits/mathcalls.h: Likewise.
	* math/stdio.h: Likewise.
	* stdlib/stdlib.h: Likewise.
	* sysdeps/alpha/fpu/bits/mathdef.h: Likewise.
	* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
	* sysdeps/arm/bits/huge_val.h: Likewise.
	* sysdeps/generic/bits/mathdef.h: Likewise.
	* sysdeps/i386/bits/huge_val.h: Likewise.
	* sysdeps/i386/fpu/bits/mathdef.h: Likewise.
	* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
	* sysdeps/ieee754/bits/huge_val.h: Likewise.
	* sysdeps/m68k/bits/huge_val.h: Likewise.
	* sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
	* sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
	* sysdeps/powerpc/bits/mathdef.h: Likewise.
	* sysdeps/powerpc/bits/mathinline.h: Likewise.
	* sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
	* sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
	* sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Likewise.
	* wcsmbs/wchar.h: Likewise.

	* sysdeps/powerpc/bits/mathdef.h: Moved to...
	* sysdeps/powerpc/fpu/bits/mathdef.h: ...here.
	* sysdeps/powerpc/bits/mathinline.h: Moved to...
	* sysdeps/powerpc/fpu/bits/mathinline.h: ...here.

1999-10-31  Andreas Jaeger  <aj@suse.de>

	* manual/math.texi (Errors in Math Functions): Correct TeX code.

1999-10-31  Andreas Jaeger  <aj@suse.de>

	* math/libm-test.inc:  Change comments to use ISO C99 instead of
	ISO C9x.
	* math/w_lgamma.c: Likewise.
	* math/w_lgammaf.c: Likewise.
	* math/w_lgammal.c: Likewise.
	* math/test-fenv.c: Likewise.
	* sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
	* sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
	* sysdeps/generic/printf_fphex.c: Likewise.

1999-10-31  Andreas Jaeger  <aj@suse.de>

	* manual/arith.texi (Parsing of Floats): Remove C from ISO C comment.

	* manual/math.texi: Change ISO C9x to ISO C99.
	* manual/startup.texi: Likewise.
	* manual/stdio.texi: Likewise.

1999-10-31  Andreas Jaeger  <aj@suse.de>

	* manual/arith.texi: Change ISO C9x to ISO C99.
	* manual/time.texi (Low-Level Time String Parsing): Likewise.
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/features.h b/include/features.h
index 1189e3ea79..a3e5c142a7 100644
--- a/include/features.h
+++ b/include/features.h
@@ -23,7 +23,7 @@
    to specify the desired environment:
 
    __STRICT_ANSI__	ISO Standard C.
-   _ISOC9X_SOURCE	Extensions to ISO C 89 from ISO C 9x.
+   _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
    _POSIX_SOURCE	IEEE Std 1003.1.
    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
 			if >=199309L, add IEEE Std 1003.1b-1993;
@@ -49,7 +49,7 @@
    These are defined by this file and are used by the
    header files to decide what to declare or define:
 
-   __USE_ISOC9X		Define ISO C 9X things.
+   __USE_ISOC99		Define ISO C99 things.
    __USE_POSIX		Define IEEE Std 1003.1 things.
    __USE_POSIX2		Define IEEE Std 1003.2 things.
    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
@@ -79,7 +79,7 @@
 
 
 /* Undefine everything, so we get a clean slate.  */
-#undef	__USE_ISOC9X
+#undef	__USE_ISOC99
 #undef	__USE_POSIX
 #undef	__USE_POSIX2
 #undef	__USE_POSIX199309
@@ -118,8 +118,8 @@
 
 /* If _GNU_SOURCE was defined by the user, turn on all the other features.  */
 #ifdef _GNU_SOURCE
-# undef  _ISOC9X_SOURCE
-# define _ISOC9X_SOURCE	1
+# undef  _ISOC99_SOURCE
+# define _ISOC99_SOURCE	1
 # undef  _POSIX_SOURCE
 # define _POSIX_SOURCE	1
 # undef  _POSIX_C_SOURCE
@@ -138,7 +138,7 @@
 
 /* If nothing (other than _GNU_SOURCE) is defined,
    define _BSD_SOURCE and _SVID_SOURCE.  */
-#if (!defined __STRICT_ANSI__ && !defined _ISOC9X_SOURCE && \
+#if (!defined __STRICT_ANSI__ && !defined _ISOC99_SOURCE && \
      !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE && \
      !defined _XOPEN_SOURCE && !defined _XOPEN_SOURCE_EXTENDED && \
      !defined _BSD_SOURCE && !defined _SVID_SOURCE)
@@ -146,10 +146,12 @@
 # define _SVID_SOURCE	1
 #endif
 
-/* This is to enable the ISO C 9x extension.  It will go away as soon
-   as this standard is officially released.  */
-#ifdef _ISOC9X_SOURCE
-# define __USE_ISOC9X	1
+/* This is to enable the ISO C99 extension.  Also recognize the old macro
+   which was used prior to the standard acceptance.  This macro will
+   eventually go away and the features enabled by default once the ISO C99
+   standard is widely adopted.  */
+#if defined _ISOC99_SOURCE || defined _ISOC9X_SOURCE
+# define __USE_ISOC99	1
 #endif
 
 /* If none of the ANSI/POSIX macros are defined, use POSIX.1 and POSIX.2