2004-07-15 08:37:53 +02:00
|
|
|
--- src/eval.c.orig Wed Jul 14 23:06:00 2004
|
|
|
|
+++ src/eval.c Wed Jul 14 23:11:06 2004
|
|
|
|
@@ -78,7 +78,11 @@
|
|
|
|
RETSIGTYPE math_sig ();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-int fls (long);
|
|
|
|
+#if __FreeBSD_version < 502112
|
|
|
|
+int local_fls (long);
|
|
|
|
+#define fls local_fls
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#ifdef SMALLEVAL
|
|
|
|
int __to_flt (struct value *);
|
|
|
|
int __to_int (struct value *);
|
|
|
|
@@ -565,7 +569,7 @@
|
2003-07-19 06:54:32 +02:00
|
|
|
case CONST_NINF:
|
|
|
|
case CONST_NAN:
|
|
|
|
p->type = TYP_FLT;
|
|
|
|
- p->Float = (byte == CONST_INF) ? __plinf : ((byte == CONST_NINF) ? __neinf : __nan);
|
|
|
|
+ p->Float = (byte == CONST_INF) ? __plinf : ((byte == CONST_NINF) ? __neinf : ___nan);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case VAR:
|
2004-07-15 08:37:53 +02:00
|
|
|
@@ -1540,7 +1544,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
-fls (num)
|
|
|
|
+local_fls (num)
|
|
|
|
long num;
|
|
|
|
{
|
|
|
|
int ret = 1;
|