blob: 35dc8136044b21dfe738483176b4ea4280e9dc5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ae,v 1.6 2011/11/21 01:35:29 marino Exp $
--- speech_tools/include/EST_math.h.orig 2011-11-20 22:34:00.490181000 +0000
+++ speech_tools/include/EST_math.h
@@ -111,6 +111,15 @@ extern "C" {
#endif
+#if defined(__DragonFly__)
+#define isnanf(X) __isnanf(X)
+#endif
+
+/* The g++-3.3.6 <cmath> header undefines the macro isnan, but shouldn't. */
+#if !defined(isnan) && defined(__fpmacro_unary_floating)
+#define isnan(X) __fpmacro_unary_floating(isnan, (X))
+#endif
+
/* Cygwin (at least cygwin 1.7 with gcc 4.3.4) */
#if defined(__CYGWIN__)
#if __GNUG__ > 3
|