diff options
-rw-r--r-- | libc/ChangeLog.eglibc | 9 | ||||
-rw-r--r-- | libc/Makefile | 2 | ||||
-rw-r--r-- | libc/bits/predefs.h | 30 | ||||
-rw-r--r-- | libc/include/features.h | 5 |
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 |