Change __isinf and __isnan from macros to inline functions. The macros do

collide with newer gcc libstdc++.
This commit is contained in:
martin 2013-09-16 15:56:24 +00:00
parent cc4812f36b
commit 8d16ae7d3d

View File

@ -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) || \