Support libiberty functions as macros
libiberty.h includes redeclarations of a bunch of possibly-system-
provided functions (mkstemps, etc); but it doesn't properly handle the
case where the system defines these as macros, and has already defined
them when libiberty.h is #included. This has a tendency to cause build
faulures on such systems (glibc is usually explicitly ruled out, which
is a bit of a code smell in itself).
Redeclare in parentheses, avoiding any macro definition.
include/
PR bootstrap/127914
* libiberty.h: Wrap POSIX-specified function redeclarations in
parens to protect against prior declaration as macros.
1 file changed