On Tuesday, 28 September 2021 at 08:45:16 UTC+1 Bill wrote:
Can you #undef fileno?
I agree that working around Microsoft stupidities are best done with a local patch, and not unnecessarily changing the code that works on other platforms (ie don't rename fileno!)
This is a slightly tricky one - we have a couple of compounded stupidities here; MS did a thing (which Albrecht dodged around) but that then collided with a stupid thing that the mingw32 folks did (presumably in their attempt to dodge so weirdness). And the underlying issue is that we had a class method called fileno that was then calling the "real" fileno - in the mingw32 case that meant we can't just #undef it, because our method then needs to use that macro expansion to get the actual operation...
The fix here is for us *not* to have a class method called fileno, basically, which is fine.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.