24 Mar 2010 19:45
Darned VAX NaNs...
John Klos <john <at> ziaspace.com>
2010-03-24 18:45:16 GMT
2010-03-24 18:45:16 GMT
devel/m4 on NetBSD-5/VAX:
...
CC isnanf.o
In file included from isnanf.c:20:
isnan.c: In function 'rpl_isnanf':
isnan.c:120: error: initializer element is not constant
isnan.c:120: error: (near initialization for 'nan.value')
isnan.c:121: error: initializer element is not constant
isnan.c:122: error: initializer element is not constant
*** Error code 1
...
It seems that the code is trying to define these things the nonportable
way:
static memory_double nan = { L_(0.0) / L_(0.0) };
static DOUBLE plus_inf = L_(1.0) / L_(0.0);
static DOUBLE minus_inf = -L_(1.0) / L_(0.0);
How do we fix this?
John
RSS Feed