Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include Change __isinf and __isnan from macros ...



details:   https://anonhg.NetBSD.org/src/rev/bd7b3fc9f996
branches:  trunk
changeset: 790082:bd7b3fc9f996
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Sep 16 15:56:24 2013 +0000

description:
Change __isinf and __isnan from macros to inline functions. The macros do
collide with newer gcc libstdc++.

diffstat:

 sys/arch/vax/include/math.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 63ba1fd6d80e -r bd7b3fc9f996 sys/arch/vax/include/math.h
--- a/sys/arch/vax/include/math.h       Mon Sep 16 15:54:42 2013 +0000
+++ b/sys/arch/vax/include/math.h       Mon Sep 16 15:56:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: math.h,v 1.6 2012/02/05 17:45:38 matt Exp $    */
+/*     $NetBSD: math.h,v 1.7 2013/09/16 15:56:24 martin Exp $  */
 
 #ifndef _VAX_MATH_H_
 #define _VAX_MATH_H_
@@ -11,8 +11,10 @@
 #define        __INFINITY      1.0E+39F
 #endif
 
-#define        __isinf(__x)    (0)
-#define        __isnan(__x)    (0)
+static inline int __isinf(double __x) { return 0; }
+static inline int __isnan(double __x) { return 0; }
+#define        __HAVE_INLINE___ISINF
+#define        __HAVE_INLINE___ISNAN
 
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
     !defined(_XOPEN_SOURCE) || \



Home | Main Index | Thread Index | Old Index