Re: Re : Warning while compiling Sather code
Sather User <[email protected]> Tue, 6 Mar 2012 14:41:42 +1030 (CST)
| Newsgroups | gmane.comp.lang.sather.announce |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 5 Mar 2012, Fadi Osman wrote:
> My "runtime.h" doesn't seem to have this issue
> Mine (1.2.3) does not have the "#ifndef isnormal"
That looks like something I did. I needed someone to blame so esc
copped it.
--- Sather-1.2b/System/Common/runtime.h 1997-09-25 04:35:56 +0930
+++ Sather-1.2b8/System/Common/runtime.h 2011-09-19 23:30:58 +0930
@@ -161,8 +161,9 @@
#ifdef linux
# define FLTDEXP10(f) pow10(f)
#define iszero(f) ((f)==0.0)
-static int ilogb(double f) { int i; frexp(f,&i); return i-1; }
-#define isnormal(f) ((int)1) /* these two are hacks esc*/
+#ifndef isnormal
+# define isnormal(f) ((int)1) /* these two are hacks esc*/
+#endif
#define issubnormal(f) ((int)0)
--
Michael Talbot-Wilson