From b92c8ed6ffcc0a9af4047c32eb0a3d1eed340f34 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 29 Aug 2023 02:27:13 +0200 Subject: [PATCH] FLUID: adds missing include for other platforms --- fluid/sourceview_panel.cxx | 7 ++++--- fluid/sourceview_panel.fl | 9 ++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/fluid/sourceview_panel.cxx b/fluid/sourceview_panel.cxx index 8754858c8..f29f0bcb8 100644 --- a/fluid/sourceview_panel.cxx +++ b/fluid/sourceview_panel.cxx @@ -19,6 +19,7 @@ #include "sourceview_panel.h" #include "fluid.h" #include "file.h" +#include "../src/flstring.h" #include #include static char *sv_source_filename = NULL; @@ -87,17 +88,17 @@ void update_sourceview_cb(class Fl_Button*, void*) { if (!sv_source_filename) { sv_source_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_source_filename, FL_PATH_MAX); - strlcat(sv_source_filename, "source_view_tmp.cxx", FL_PATH_MAX); + fl_strlcat(sv_source_filename, "source_view_tmp.cxx", FL_PATH_MAX); } if (!sv_header_filename) { sv_header_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_header_filename, FL_PATH_MAX); - strlcat(sv_header_filename, "source_view_tmp.h", FL_PATH_MAX); + fl_strlcat(sv_header_filename, "source_view_tmp.h", FL_PATH_MAX); } if (!sv_design_filename) { sv_design_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_design_filename, FL_PATH_MAX); - strlcat(sv_design_filename, "source_view_tmp.fl", FL_PATH_MAX); + fl_strlcat(sv_design_filename, "source_view_tmp.fl", FL_PATH_MAX); } if (sv_project->visible_r()) { diff --git a/fluid/sourceview_panel.fl b/fluid/sourceview_panel.fl index 7842983c6..37c38d2fb 100644 --- a/fluid/sourceview_panel.fl +++ b/fluid/sourceview_panel.fl @@ -31,6 +31,9 @@ decl {\#include "fluid.h"} {private local decl {\#include "file.h"} {private local } +decl {\#include "../src/flstring.h"} {selected private local +} + decl {\#include } {private local } @@ -105,17 +108,17 @@ and load those into the Code Viewer widgets.} open return_type void if (!sv_source_filename) { sv_source_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_source_filename, FL_PATH_MAX); - strlcat(sv_source_filename, "source_view_tmp.cxx", FL_PATH_MAX); + fl_strlcat(sv_source_filename, "source_view_tmp.cxx", FL_PATH_MAX); } if (!sv_header_filename) { sv_header_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_header_filename, FL_PATH_MAX); - strlcat(sv_header_filename, "source_view_tmp.h", FL_PATH_MAX); + fl_strlcat(sv_header_filename, "source_view_tmp.h", FL_PATH_MAX); } if (!sv_design_filename) { sv_design_filename = (char*)malloc(FL_PATH_MAX); fluid_prefs.getUserdataPath(sv_design_filename, FL_PATH_MAX); - strlcat(sv_design_filename, "source_view_tmp.fl", FL_PATH_MAX); + fl_strlcat(sv_design_filename, "source_view_tmp.fl", FL_PATH_MAX); } if (sv_project->visible_r()) {