From 75a8e0e68e4980647a6d588a15bb300d132b6650 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 18:49:32 +1300 Subject: Fixed several preprocessor ABI version issues --- src/c_fl_text_editor.cpp | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'src/c_fl_text_editor.cpp') diff --git a/src/c_fl_text_editor.cpp b/src/c_fl_text_editor.cpp index 8c33afa..b7e3f3e 100644 --- a/src/c_fl_text_editor.cpp +++ b/src/c_fl_text_editor.cpp @@ -279,13 +279,23 @@ void fl_text_editor_set_insert_mode(TEXTEDITOR te, int i) { -//int fl_text_editor_get_tab_nav(TEXTEDITOR te) { -// return reinterpret_cast(te)->tab_nav(); -//} - -//void fl_text_editor_set_tab_nav(TEXTEDITOR te, int t) { -// reinterpret_cast(te)->tab_nav(t); -//} +int fl_text_editor_get_tab_nav(TEXTEDITOR te) { +#if FLTK_ABI_VERSION >= 10304 + return reinterpret_cast(te)->tab_nav(); +#else + (void)(te); + return 0; +#endif +} + +void fl_text_editor_set_tab_nav(TEXTEDITOR te, int t) { +#if FLTK_ABI_VERSION >= 10304 + reinterpret_cast(te)->tab_nav(t); +#else + (void)(te); + (void)(t); +#endif +} -- cgit