summaryrefslogtreecommitdiff
path: root/cad/gnucap/patches/patch-af
blob: 85b25bdea9e8a217ca26f41a7ef9325c8997162d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-af,v 1.2 2005/12/20 12:02:15 joerg Exp $

--- src/l_ftos.cc.orig	2004-02-01 21:13:19.000000000 +0000
+++ src/l_ftos.cc
@@ -36,8 +36,16 @@
  * there is a finite pool, so repeated calls work, to a point.
  * after that, the space is overwritten, every POOLSIZE calls
  */
+
+#include <math.h>
 #include "l_lib.h"
 #include "constant.h"
+
+#if defined(_GLIBCXX_USE_C99_MATH) && !defined(_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC)
+using std::isinf;
+using std::isnan;
+#endif
+
 /*--------------------------------------------------------------------------*/
 	char*	utos(unsigned,char*,int);
 	char*	itos(int,char*,int,int);