From 2141c63628a831d3f53dad7035c94028f8d0d629 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Jul 2020 20:15:41 -0700 Subject: Implement + deploy fl_strdup() --- src/Fl_System_Driver.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Fl_System_Driver.H') 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) { -- cgit v1.2.3