To whom it will concern, I've downloaded your tz code and tried to make it. My compiler (gcc 2.95.4) has found some errors in the code. The patch is attached. See for instance ISO/IEC 9899:1999(E) C Standart Second Edition 1999-12-01. 6.5.3 Unary operators Syntax 1 unary-expression: postfix-expression ++ unary-expression -- unary-expression unary-operator cast-expression sizeof unary-expression sizeof ( type-name ) The best regards, Vsevolod Novikov Programmer Consul-Incom Ltd. Russia diff -u -r tz.old/difftime.c tz/difftime.c --- tz.old/difftime.c Fri Oct 5 01:01:13 2001 +++ tz/difftime.c Tue Dec 18 18:58:59 2001 @@ -32,9 +32,9 @@ time_t delta; time_t hibit; - if (sizeof time_t < sizeof double) + if (sizeof(time_t) < sizeof(double)) return (double) time1 - (double) time0; - if (sizeof time_t < sizeof long_double) + if (sizeof(time_t) < sizeof(long_double)) return (long_double) time1 - (long_double) time0; if (time1 < time0) return -difftime(time0, time1);
participants (1)
-
Vsevolod Novikov