Hi,

> > > 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*);

I think this will not work. If it is easier for other projects, feel free to
convert the method return value type back to int, I will add a workaround to
ACE.

Johnny


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

Reply via email to