From b92c8ed6ffcc0a9af4047c32eb0a3d1eed340f34 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 29 Aug 2023 02:27:13 +0200 Subject: FLUID: adds missing include for other platforms --- fluid/sourceview_panel.fl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fluid/sourceview_panel.fl') 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()) { -- cgit v1.2.3