This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Legalize access to file descriptors now! (So sue me.)


On Thu, 17 Feb 2005, Jonathan Wakely wrote:
> Am I missing it, or is there no link to download the code?  I seem to
> have to copy'n'paste from the webpage.

I'll change this, some time.

[...]
> fileno(3) is a macro on BSD - so declaring a template function overload
> fails, as does referring to it as ::fileno().

Oops, I wasn't aware of fileno(3) being a macro on some platforms.

> You also need to wrap the instantiation of the wide-stream
> specialisation in a check for _GLIBCXX_USE_WCHAR_T or
> _GLIBCPP_USE_WCHAR_T for platforms that don't support wchar_t I/O.

Okay, I'll fix it.  Only the second instantiation would need to be wrapped
in #ifdefs.  Thanks for pointing it out.

 -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]