FLTK logo

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)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

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.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.