blob: d6b587124f1ffc53b877794268281944fe0f42ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/runtime/rmisc.r 1997/10/02 09:28:35 1.1
+++ src/runtime/rmisc.r 1997/10/02 09:30:08
@@ -123,14 +123,15 @@
return buf;
#endif /* OS2EMX */
-#if FreeBSD
+#if (defined(GenericBSD) && !defined(FreeBSD))
+/* This is commented out in the FreeBSD ports collection */
#define ecvt(w,x,y,z) 0
sprintf(buf, "%f", number);
for(i=strlen(buf); i>1 && buf[i-1]=='0' && buf[i-2]!='.'; i--)
buf[i-1] = '\0';
return buf;
-#endif /* FreeBSD */
+#endif /* GenericBSD && !FreeBSD */
p1 = ecvt(number, ndigit, &decpt, &sign);
p2 = buf;
|