info-sather
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re : Warning while compiling Sather code


From: Sather User
Subject: Re: Re : Warning while compiling Sather code
Date: Tue, 6 Mar 2012 14:41:42 +1030 (CST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]