This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
strict ansi C++ with isnan() et al
- From: "Lev Bishop" <lev dot bishop at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 30 Nov 2006 17:48:16 -0500
- Subject: strict ansi C++ with isnan() et al
An issue was reported on cygwin here:
http://cygwin.com/ml/cygwin/2006-11/msg00786.html
I know little about how system headers are supposed to work, but would
this be an appropriate patch? It fixes this specific problem, for me.
Or is the root problem elsewhere than newlib?
--- /usr/include/math.h 2006-11-30 17:45:31.875000000 -0500
+++ /usr/include/math.h.old 2006-11-30 17:42:21.468750000 -0500
@@ -102,7 +102,7 @@
#endif /* ! defined (__math_68881) */
#endif /* ! defined (_REENT_ONLY) */
-#if !defined(__STRICT_ANSI__) || defined(__cplusplus)
+#ifndef __STRICT_ANSI__
/* ISO C99 types and macros. */
@@ -233,7 +233,7 @@
#endif /* ! defined (_REENT_ONLY) */
-#endif /* ! defined (__STRICT_ANSI__) || defined (__cplusplus) */
+#endif /* ! defined (__STRICT_ANSI__) */
#if !defined(__STRICT_ANSI__) || defined(__cplusplus)
--
Lev