summaryrefslogtreecommitdiff
path: root/FL/fl_attr.h
AgeCommit message (Collapse)Author
2 dayswi[maxim nikonov
2025-03-06Define FL_OVERRIDE unconditionally as 'override'Albrecht Schlosser
FLTK 1.5 requires at least C++11, hence we can always use 'override'. To do: the FL_OVERRIDE macro can be replaced by 'override' everywhere in the FLTK code. There are more than 2400 occurrences and this would be a large commit. Therefore it's not done right now... Note: user code may continue to use FL_OVERRIDE.
2024-05-11Enable suppression of "deprecated" warnings (FL_NO_DEPRECATE)Albrecht Schlosser
This is intended for backwards compatibility with FLTK 1.3.x code ported to 1.4.0. Users defining FL_NO_DEPRECATE can compile old (1.3.x) code w/o seeing lots of "deprecated" warnings. A legitimate use case is if old (1.3) code is intended to be used with both FLTK 1.3 and 1.4. FL_NO_DEPRECATE should NOT be defined if the user's code is targeted at 1.4.x or later. Users should fix their code to be prepared for the next minor release (e.g. 1.5.0). Todo: document this.
2024-04-02Improve support for NetBSD (#944)Albrecht Schlosser
- fix gcc version check for FL_DEPRECATED macro - fix #include for select() on NetBSD < 3.0 (#944) For more info please see GitHub Issue #944
2024-03-15Fix a bunch of compiler warnings, particularly for old compilersAlbrecht Schlosser
Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now.
2023-03-09Remove warnings when fl_attr.h is compiled in CManoloFLTK
2023-02-06Document MSVC macro _MSVC_LANG for future use in fl_attr.hAlbrecht Schlosser
This macro defines the C++ standard used by the compiler since Visual Studio 2015 Update 3.
2023-02-05Doxygen fix for FL_DEPRECATEDMatthias Melcher
2023-02-02Fix position() methods that shadow Fl_Widget::position()Matthias Melcher
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
2023-02-02Update dependencies and fix whitespace errorsAlbrecht Schlosser
- replace tabs with spaces - remove trailing whitespace
2023-01-15Have files fl_attr.h and names.h visible by DoxygenManoloFLTK
For some reason, the \file Doxygen command is absolutely required.
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2021-10-17Avoid multiple definition of macro __fl_attr()Albrecht Schlosser
This could happen if both FL/fl_ask.H and fluid/Fl_Type.h were included in the same file.