This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51364] C++ interoperability with ISO-C extension DFP types requires explicit typedefs.
- From: "rsa at us dot ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2011 16:03:04 +0000
- Subject: [Bug c++/51364] C++ interoperability with ISO-C extension DFP types requires explicit typedefs.
- Auto-submitted: auto-generated
- References: <bug-51364-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51364
--- Comment #5 from Ryan S. Arnold <rsa at us dot ibm.com> 2011-12-09 16:03:04 UTC ---
As a temporary fix I've added the following to libdfp:
http://www.eglibc.org/cgi-bin/viewvc.cgi/libdfp/trunk/dfp/float.h?view=markup
This adds <dfp/float.h>, which does #include_next <float.h>, and then checks to
see #ifdef __cplusplus and #ifndef _Decimal64. If both pass, then it means
that the compiler has not yet added _Decimal[32|64|128] compatibility support
to float.h and it defines them itself.