summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-08-31 16:43:34 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-08-31 16:43:34 +0000
commit040cf0982957464b3027fbcaff352f61d9101b6f (patch)
treeaec8babffb2c657c30f6e867a9f1d3b796fad4a6
parent46539f90f7d982ba49ce36554ffd02ef46426295 (diff)
2006-08-31 Mark Mitchell <mark@codesourcery.com>
Julian Brown <julian@codesourcery.com> * Makefile (headers): Add bits/predefs.h. * include/features.h (__STDC_IEC_559__): Do not define. (__STDC_IEC_559_COMPLEX__): Likewise. (<bits/predefs.h>): Include. * bits/predefs.h: New file. git-svn-id: svn://svn.eglibc.org/trunk@129 7b3dc134-2b1b-0410-93df-9e9f96275f8d
-rw-r--r--libc/ChangeLog.eglibc9
-rw-r--r--libc/Makefile2
-rw-r--r--libc/bits/predefs.h30
-rw-r--r--libc/include/features.h5
4 files changed, 42 insertions, 4 deletions
diff --git a/libc/ChangeLog.eglibc b/libc/ChangeLog.eglibc
index 0cc9467a5..5657b5bb3 100644
--- a/libc/ChangeLog.eglibc
+++ b/libc/ChangeLog.eglibc
@@ -1,3 +1,12 @@
+2006-08-31 Mark Mitchell <mark@codesourcery.com>
+ Julian Brown <julian@codesourcery.com>
+
+ * Makefile (headers): Add bits/predefs.h.
+ * include/features.h (__STDC_IEC_559__): Do not define.
+ (__STDC_IEC_559_COMPLEX__): Likewise.
+ (<bits/predefs.h>): Include.
+ * bits/predefs.h: New file.
+
2006-08-26 Joseph Myers <joseph@codesourcery.com>
* io/test-lfs.c (do_prepare): Give name_len type size_t.
diff --git a/libc/Makefile b/libc/Makefile
index 43c4f4d4b..afac87306 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -69,7 +69,7 @@ endif # $(AUTOCONF) = no
$(addprefix install-, no-libc.a bin lib data headers others)
headers := limits.h values.h features.h gnu-versions.h bits/libc-lock.h \
- bits/xopen_lim.h gnu/libc-version.h
+ bits/xopen_lim.h gnu/libc-version.h bits/predefs.h
echo-headers: subdir_echo-headers
diff --git a/libc/bits/predefs.h b/libc/bits/predefs.h
new file mode 100644
index 000000000..4b0484a7b
--- /dev/null
+++ b/libc/bits/predefs.h
@@ -0,0 +1,30 @@
+/* Copyright (C) 2005 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#ifndef _FEATURES_H
+# error "Never use <bits/predefs.h> directly; include <features.h> instead."
+#endif
+
+#ifndef _PREDEFS_H
+#define _PREDEFS_H
+
+/* We do support the IEC 559 math functionality, real and complex. */
+#define __STDC_IEC_559__ 1
+#define __STDC_IEC_559_COMPLEX__ 1
+
+#endif /* predefs.h */
diff --git a/libc/include/features.h b/libc/include/features.h
index 0b06b0f71..71f159637 100644
--- a/libc/include/features.h
+++ b/libc/include/features.h
@@ -285,9 +285,8 @@
# define __USE_FORTIFY_LEVEL 0
#endif
-/* We do support the IEC 559 math functionality, real and complex. */
-#define __STDC_IEC_559__ 1
-#define __STDC_IEC_559_COMPLEX__ 1
+/* Define __STDC_IEC_559__ and other similar macros. */
+#include <bits/predefs.h>
/* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.1. */
#define __STDC_ISO_10646__ 200009L