summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-26 18:19:43 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-02-26 18:19:43 +0100
commit7810cda145dae1a0dfc739ec24078a73e3138088 (patch)
tree7fc02ce2f4f476cd0415677945185df180f0ffa0 /fluid
parente092b562ba2f6b966d7e18a5f4b2d6d242d954f3 (diff)
Fix Visual Studio build warnings
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Shortcut_Button.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/Shortcut_Button.cxx b/fluid/Shortcut_Button.cxx
index fabe1ea11..517eee624 100644
--- a/fluid/Shortcut_Button.cxx
+++ b/fluid/Shortcut_Button.cxx
@@ -27,6 +27,7 @@
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Menu_.H>
+#include <FL/fl_string_functions.h>
#include "../src/flstring.h"
/** \class Shortcut_Button
@@ -299,7 +300,7 @@ int Fluid_Coord_Input::eval(uchar *&s, int prio) const {
int Fluid_Coord_Input::eval(const char *s) const
{
// duplicate the text, so we can modify it
- uchar *buf = (uchar*)strdup(s);
+ uchar *buf = (uchar*)fl_strdup(s);
uchar *src = buf, *dst = buf;
// remove all whitespace to make the parser easier
for (;;) {