summaryrefslogtreecommitdiff
path: root/src/c_fl_text_editor.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 18:49:32 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 18:49:32 +1300
commit75a8e0e68e4980647a6d588a15bb300d132b6650 (patch)
treea728a05b9a4db547ad0886bb6975f8e0729c919c /src/c_fl_text_editor.cpp
parent8b01c23e0ba1fd22e0bfc797d6ca540c79079674 (diff)
Fixed several preprocessor ABI version issues
Diffstat (limited to 'src/c_fl_text_editor.cpp')
-rw-r--r--src/c_fl_text_editor.cpp24
1 files changed, 17 insertions, 7 deletions
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<Fl_Text_Editor*>(te)->tab_nav();
-//}
-
-//void fl_text_editor_set_tab_nav(TEXTEDITOR te, int t) {
-// reinterpret_cast<Fl_Text_Editor*>(te)->tab_nav(t);
-//}
+int fl_text_editor_get_tab_nav(TEXTEDITOR te) {
+#if FLTK_ABI_VERSION >= 10304
+ return reinterpret_cast<Fl_Text_Editor*>(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<Fl_Text_Editor*>(te)->tab_nav(t);
+#else
+ (void)(te);
+ (void)(t);
+#endif
+}