summaryrefslogtreecommitdiff
path: root/src/Fl_System_Driver.H
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2020-07-21 20:15:41 -0700
committerGreg Ercolano <erco@seriss.com>2020-08-01 14:19:40 -0700
commit2141c63628a831d3f53dad7035c94028f8d0d629 (patch)
tree614cb7b627da2decbb7cfe49c081f9d7b4140c58 /src/Fl_System_Driver.H
parent7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff)
Implement + deploy fl_strdup()
Diffstat (limited to 'src/Fl_System_Driver.H')
-rw-r--r--src/Fl_System_Driver.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_System_Driver.H b/src/Fl_System_Driver.H
index 77a58971f..73f197f95 100644
--- a/src/Fl_System_Driver.H
+++ b/src/Fl_System_Driver.H
@@ -98,6 +98,9 @@ public:
virtual int putenv(const char *var) {return -1;}
virtual int open(const char* f, int oflags, int pmode) {return -1;}
+ // implement these to support cross-platform string operations
+ virtual char *strdup(const char *s) {return NULL;}
+
// Note: the default implementation ignores the 'binary' argument.
// Some platforms (notably Windows) may use this argument.
virtual int open_ext(const char* f, int binary, int oflags, int pmode) {