On Wednesday 20 May 2009 14:47:00, Pierre Ynard wrote:
> 
> > I'll try changing the definition of fileno to void *, we'll see what
> > breaks :-)
> 
> Compiling live555 now fails on some lines that use fileno(), with:
> 
> error: invalid conversion from 'void*' to 'int'
> 
> Just saying.
> 

Yes, that was why I made it return an int in the first place...  I thought
there was a comment in the header explaining it.

Making it return a void* will break a lot of stuff.  Programs that have
been ported to build with MSFT's CE compilers will be using _fileno, not
fileno, so, if people really want to stay compatible with MSFT's headers,
then what about having it like this? :

int fileno (FILE*);
void *_fileno (FILE*);

-- 
Pedro Alves

------------------------------------------------------------------------------
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to