Source-Changes-HG archive

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

[src/trunk]: src/include Fix the rest of the functions that have been made vi...



details:   https://anonhg.NetBSD.org/src/rev/87fd14cfba01
branches:  trunk
changeset: 323663:87fd14cfba01
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 24 23:55:29 2018 +0000

description:
Fix the rest of the functions that have been made visible by xopen5,
posix 2017, and c99.

diffstat:

 include/math.h |  25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diffs (60 lines):

diff -r 3fcaac7db91f -r 87fd14cfba01 include/math.h
--- a/include/math.h    Sun Jun 24 22:07:46 2018 +0000
+++ b/include/math.h    Sun Jun 24 23:55:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: math.h,v 1.64 2018/06/24 22:07:46 christos Exp $       */
+/*     $NetBSD: math.h,v 1.65 2018/06/24 23:55:29 christos Exp $       */
 
 /*
  * ====================================================
@@ -253,6 +253,19 @@
 double yn(int, double);
 
 #if (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
+double scalb(double, double);
+#endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/
+#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
+
+/*
+ * ISO C99
+ */
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
+    !defined(_XOPEN_SOURCE) || \
+    ((__STDC_VERSION__ - 0) >= 199901L) || \
+    ((_POSIX_C_SOURCE - 0) >= 200809L) || \
+    ((_XOPEN_SOURCE  - 0) >= 500) || \
+    defined(_ISOC99_SOURCE) || defined(_NETBSD_SOURCE)
 double acosh(double);
 double asinh(double);
 double atanh(double);
@@ -263,13 +276,9 @@
 double logb(double);
 double nextafter(double, double);
 double remainder(double, double);
-double scalb(double, double);
-#endif /* (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)*/
-#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
+double rint(double);
+#endif
 
-/*
- * ISO C99
- */
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || \
     ((__STDC_VERSION__ - 0) >= 199901L) || \
@@ -380,13 +389,13 @@
 long double    tgammal(long double);
 
 /* 7.12.9 nearest integer */
+
 /* LONGLONG */
 long long int  llrint(double);
 long int       lround(double);
 /* LONGLONG */
 long long int  llround(double);
 long int       lrint(double);
-double rint(double);
 double round(double);
 double trunc(double);
 



Home | Main Index | Thread Index | Old Index