Module Name:    src
Committed By:   martin
Date:           Mon Sep 16 15:56:24 UTC 2013

Modified Files:
        src/sys/arch/vax/include: math.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/vax/include/math.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/include/math.h
diff -u src/sys/arch/vax/include/math.h:1.6 src/sys/arch/vax/include/math.h:1.7
--- src/sys/arch/vax/include/math.h:1.6	Sun Feb  5 17:45:38 2012
+++ src/sys/arch/vax/include/math.h	Mon Sep 16 15:56:24 2013
@@ -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) || \

Reply via email to