bug-groff
[Top][All Lists]
Advanced

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

Re: groff 1.17 lib.h conflict with strerror declaration


From: Werner LEMBERG
Subject: Re: groff 1.17 lib.h conflict with strerror declaration
Date: Fri, 20 Apr 2001 10:07:17 +0200 (CEST)

> strerror declaration in lib.h conflicts with standard declaration in
> the standard header <string.h> (see ANSI/ISO 9899-1990 section
> 7.11.6.2).  lib.h wrapper uses #ifndef strerror on the assumption
> (incorrect) that strerror is always a macro.  lib.h already
> #includes <string.h>, so a redeclaration of strerror is unnecessary
> except on systems with a broken string.h (in which case the broken
> header should be fixed).

Thanks for the report.  Actually, groff already comes with strerror.c
which is used if strerror() isn't available on the system, so the
`#ifndef strerror' is really unnessary on all platforms.


    Werner



reply via email to

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