Lines 224..240 of contrib/tzcode/stdtime/private.h appear to contain the same code twice: /* ** Since the definition of TYPE_INTEGRAL contains floating point numbers, ** it cannot be used in preprocessor directives. */ #ifndef TYPE_INTEGRAL #define TYPE_INTEGRAL(type) (((type) 0.5) != 0.5) #endif /* !defined TYPE_INTEGRAL */ /* ** Since the definition of TYPE_INTEGRAL contains floating point numbers, ** it cannot be used in preprocessor directives. */ #ifndef TYPE_INTEGRAL #define TYPE_INTEGRAL(type) (((type) 0.5) != 0.5) #endif /* !defined TYPE_INTEGRAL */
Created attachment 194061 [details] Removes redundant lines
Our tzcode is getting a little long in the tooth. I have a long-standing work in progress to update it. I would be surprised if this bug were still present in more recent versions of tzcode. I'll try to get around to finishing the merge of a newer tzcode Soon[tm]. (Note that our tzdata is in sync with upstream -- only tzcode is stale.)
(In reply to Philip Paeps from comment #2) Did you ever get back tho this?
Thanks for the reminder. I haven't had a chance to look at this since last year. I'll see if I can pick this up again.
Our tzcode has seen recent love from des@. The most recent imports do not include this duplicate code. Marking this issue as overcome by events.