On 17.09.2025 13:33, Will Godfrey wrote:
The weather has been so unremittingly horrible here I packed up early and
returned late last night :(
Anyway, the fltk problem I mentioned earlier is worse than I thought.
int Fl_Input_::position(int) is actually used all over the place, and putting
in stacks of IFDEFs isn't practical.
Does anyone know FLTK well enough to see if we could set up an alias at compile
time to represent either position(int) when compiling for V1.3.x
or insert_position(p) for V1.4.x ?
If so we could then just change our code to the alias and forget about it.
This is serious enough that if we don't get this sorted reasonably soon,
Yoshimi could get dropped from debian :(
What about this: Rename all occurrences of `Fl_Input::position` to
`Fl_Input::position_workaround`, then define something like this in
`global.h`:
#ifdef FLTK_1_3
#define position_workaround(X) position(X)
#else
#define position_workaround(X) insert_position(X)
#endif
Note that I just made up the `FLTK_1_3` macro, but there's probably
something like it. The principle should work, no?
--
Kristian
_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel