[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r15830 - in /libdfp/trunk: ChangeLog Makefile.in dfp/stdlib.h dfp/wchar.h tests/test-stdlib.c tests/test-wchar.c



Author: ryanarn
Date: Tue Nov 15 17:19:41 2011
New Revision: 15830

Log:
The files dfp/stdlib.h and dfp/wchar.h are missing a #include <features.h>
such that when they're included without math.h (which does include
<features.h>) they generate errors associated with unrecognized symbols.

2011-11-15  Ryan S. Arnold  <rsa@xxxxxxxxxxxxxxxxxx>

	* dfp/stdlib.h: Added #include <features.h> to correct include order
	problem.
	* dfp/wchar.h: Likewise.
	* tests/test-stdlib.c: New test to verify <features.h> inclusion.
	* tests/test-wchar.c: New test to verify <features.h> inclusion.
	* Makefile.in (libdfp_tests): Added test-stdlib and test-wchar.


Added:
    libdfp/trunk/tests/test-stdlib.c
    libdfp/trunk/tests/test-wchar.c
Modified:
    libdfp/trunk/ChangeLog
    libdfp/trunk/Makefile.in
    libdfp/trunk/dfp/stdlib.h
    libdfp/trunk/dfp/wchar.h

Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Tue Nov 15 17:19:41 2011
@@ -1,3 +1,12 @@
+2011-11-15  Ryan S. Arnold  <rsa@xxxxxxxxxxxxxxxxxx>
+
+	* dfp/stdlib.h: Added #include <features.h> to correct include order
+	problem.
+	* dfp/wchar.h: Likewise.
+	* tests/test-stdlib.c: New test to verify <features.h> inclusion.
+	* tests/test-wchar.c: New test to verify <features.h> inclusion.
+	* Makefile.in (libdfp_tests): Added test-stdlib and test-wchar.
+
 2011-10-27  Ryan S. Arnold  <rsa@xxxxxxxxxxxxxxxxxx>
 
 	* configure: Regenerated.

Modified: libdfp/trunk/Makefile.in
==============================================================================
--- libdfp/trunk/Makefile.in (original)
+++ libdfp/trunk/Makefile.in Tue Nov 15 17:19:41 2011
@@ -304,7 +304,7 @@
 GLIBC_LIBS := $(glibc_builddir)/libc.so $(glibc_builddir)/math/libm.so $(glibc_builddir)/nptl/libpthread.so
 endif
 
-libdfp_tests = test-printf test-param test-amort test-decode test-quantize test-isnan test-isinf test-isfinite test-fpclassify test-logd test-log10d test-strtod test-numdigits test-get_digits test-round test-bfp-conversions
+libdfp_tests = test-printf test-param test-amort test-decode test-quantize test-isnan test-isinf test-isfinite test-fpclassify test-logd test-log10d test-strtod test-numdigits test-get_digits test-round test-bfp-conversions test-stdlib test-wchar
 
 # Explicitly link against the uninstalled GLIBC and the Libdfp.so.1 we just
 # built.

Modified: libdfp/trunk/dfp/stdlib.h
==============================================================================
--- libdfp/trunk/dfp/stdlib.h (original)
+++ libdfp/trunk/dfp/stdlib.h Tue Nov 15 17:19:41 2011
@@ -1,7 +1,7 @@
 /* stdlib.h for libdfp and redirect to system stdlib.h
 
    Copyright (C) 2006 IBM Corporation.
-   Copyright (C) 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2011 Free Software Foundation, Inc.
 
    This file is part of the Decimal Floating Point C Library.
 
@@ -28,6 +28,7 @@
 
 #ifdef __STDC_WANT_DEC_FP__
 
+#include <features.h>
 #include <stddef.h>
 
 __BEGIN_DECLS

Modified: libdfp/trunk/dfp/wchar.h
==============================================================================
--- libdfp/trunk/dfp/wchar.h (original)
+++ libdfp/trunk/dfp/wchar.h Tue Nov 15 17:19:41 2011
@@ -1,6 +1,6 @@
 /* wchar.h for libdfp and redirect to system wchar.h.
 
-   Copyright (C) 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2011 Free Software Foundation, Inc.
 
    This file is part of the Decimal Floating Point C Library.
 
@@ -27,6 +27,7 @@
 
 #ifdef __STDC_WANT_DEC_FP__
 
+#include <features.h>
 #include <stddef.h>
 
 __BEGIN_DECLS

Added: libdfp/trunk/tests/test-stdlib.c
==============================================================================
--- libdfp/trunk/tests/test-stdlib.c (added)
+++ libdfp/trunk/tests/test-stdlib.c Tue Nov 15 17:19:41 2011
@@ -1,0 +1,34 @@
+/* Test stdlib.h includes.
+
+   Copyright (C) 2011 Free Software Foundation, Inc.
+
+   This file is part of the Decimal Floating Point C Library.
+
+   Author(s): Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+   The Decimal Floating Point C Library is free software; you can
+   redistribute it and/or modify it under the terms of the GNU Lesser
+   General Public License version 2.1.
+
+   The Decimal Floating Point 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 version 2.1 for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License version 2.1 along with the Decimal Floating Point C Library;
+   if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+   Suite 330, Boston, MA 02111-1307 USA.
+
+   Please see libdfp/COPYING.txt for more information.  */
+
+#ifndef __STDC_WANT_DEC_FP__
+#define __STDC_WANT_DEC_FP__
+#endif
+
+/* In the past stdlib.h was missing a #include <features.h>  */
+#include <dfp/stdlib.h>
+int main(void)
+{
+	return 0;
+}

Added: libdfp/trunk/tests/test-wchar.c
==============================================================================
--- libdfp/trunk/tests/test-wchar.c (added)
+++ libdfp/trunk/tests/test-wchar.c Tue Nov 15 17:19:41 2011
@@ -1,0 +1,35 @@
+/* Test wchar.h includes.
+
+   Copyright (C) 2011 Free Software Foundation, Inc.
+
+   This file is part of the Decimal Floating Point C Library.
+
+   Author(s): Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+   The Decimal Floating Point C Library is free software; you can
+   redistribute it and/or modify it under the terms of the GNU Lesser
+   General Public License version 2.1.
+
+   The Decimal Floating Point 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 version 2.1 for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License version 2.1 along with the Decimal Floating Point C Library;
+   if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+   Suite 330, Boston, MA 02111-1307 USA.
+
+   Please see libdfp/COPYING.txt for more information.  */
+
+#ifndef __STDC_WANT_DEC_FP__
+#define __STDC_WANT_DEC_FP__
+#endif
+
+/* In the past wchar.h was missing a #include <features.h>  */
+#include <dfp/wchar.h>
+
+int main(void)
+{
+	return 0;
+}

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits