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/drivers/WinAPI/Fl_WinAPI_System_Driver.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.H') diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H index 91b230d5f..049e6c114 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H @@ -24,6 +24,7 @@ #include "../../Fl_System_Driver.H" #include +#include // strdup /* Move everything here that manages the system interface. @@ -34,6 +35,7 @@ - directory and file access - system time and system timer - multithreading + - string management */ class Fl_WinAPI_System_Driver : public Fl_System_Driver @@ -116,6 +118,7 @@ public: virtual void remove_fd(int, int when); virtual void remove_fd(int); virtual void gettime(time_t *sec, int *usec); + virtual char* strdup(const char *s) { return ::_strdup(s); } }; #endif // FL_WINAPI_SYSTEM_DRIVER_H -- cgit v1.2.3 From b4095880125b2f0d1d56c80a2bbf3fb0f6f98cb9 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Jul 2020 23:57:45 -0700 Subject: Remove unneeded strdup from example, fold tabs --- src/drivers/WinAPI/Fl_WinAPI_System_Driver.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.H') diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H index 049e6c114..0dd12ca17 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H @@ -24,7 +24,7 @@ #include "../../Fl_System_Driver.H" #include -#include // strdup +#include // strdup /* Move everything here that manages the system interface. -- cgit v1.2.3