Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-12-01 02:40:12 +0300
committerJeff Johnston <jjohnstn@redhat.com>2006-12-01 02:40:12 +0300
commit75190a8fa2a51b16fdf33f7b2b88f9d3c5fa17c2 (patch)
tree48b527ff51a917c989fc0b42895e66717ae47d82 /newlib
parent76c404864864eb61cb5c14ec269fd142f696d79e (diff)
2006-11-30 Lev Bishop <lev.bishop@gmail.com>
* libc/include/math.h: Allow C99 functions/macros to be defined for C++ even when __STRICT_ANSI__.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/math.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index cab8db24e..b6d3928fc 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-30 Lev Bishop <lev.bishop@gmail.com>
+
+ * libc/include/math.h: Allow C99 functions/macros to be
+ defined for C++ even when __STRICT_ANSI__.
+
2006-11-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/makebuf.c (__smakebuf): If dealing with
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
index 11b1a1845..3e96757c8 100644
--- a/newlib/libc/include/math.h
+++ b/newlib/libc/include/math.h
@@ -102,7 +102,7 @@ extern double fmod _PARAMS((double, double));
#endif /* ! defined (__math_68881) */
#endif /* ! defined (_REENT_ONLY) */
-#ifndef __STRICT_ANSI__
+#if !defined(__STRICT_ANSI__) || defined(__cplusplus)
/* ISO C99 types and macros. */
@@ -233,7 +233,7 @@ extern double drem _PARAMS((double, double));
#endif /* ! defined (_REENT_ONLY) */
-#endif /* ! defined (__STRICT_ANSI__) */
+#endif /* !defined (__STRICT_ANSI__) || defined(__cplusplus) */
#if !defined(__STRICT_ANSI__) || defined(__cplusplus)