stdio.h vs. bits/stdio.h header brokeness?

Petter Reinholdtsen pere@hungry.com
Fri May 9 13:20:00 GMT 2003


[Thorsten Kukuk]
> According to the ChangeLog, the one in bits/stdio.h must be wrong.
> 
> I append a patch to fix this.

But, isn't __THROW expanded to throw() when compiling C++ code, to let
the compiler know that these functions never will throw exceptions?

Why is it wrong to include this when compiling C++?

Or did you think about the following changelog entry?

  1999-11-23  Andreas Jaeger  <aj@suse.de>

        * include/aio.h: Remove __THROW from internal interfaces.  __THROW
        is only need in external header files that might be compiled by a
        C++ compiler.

Doesn't this indicating that the stdio.h header file should use
__THROW(), as it is an external header file, and that bits/stdio.h
need to do the same to avoid compiler warnings?



More information about the Libc-alpha mailing list