Re: [fltk/fltk] Fix min not defined compiler error (without using std::min) by using the same method the Debian maintainers did by moving it down (#172)
Re: [fltk/fltk] Fix min not defined compiler error (without using std::min) by using the same method the Debian maintainers did by moving it down (#172)
ComputerNerd
Dec 07, 2020
Yes, that makes sense to me. I went with the #undef approach so that way we are using our own macro instead of using a macro from a system header. Although it's very likely that any min macro from a system header would function the same I don't see any reason to rely on that when we can be 100% sure we are using our own macro.
Windows.h also does that. I typically compile my Windows programs with -DNOMINMAX as a part of the CFLAGS.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
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'.