summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/math.h')
-rw-r--r--newlib/libc/include/math.h4
1 files changed, 2 insertions, 2 deletions
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)