From 5a4d10faeae2870c1a651f3d3c5a9e2a866c37cf Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 27 Apr 2016 17:25:17 +0000 Subject: Use standard fopen() as default implementation of virtual Fl_System_Driver::fopen() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_System_Driver.cxx | 3 +++ src/drivers/Posix/Fl_Posix_System_Driver.H | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_System_Driver.cxx b/src/Fl_System_Driver.cxx index ca94789f6..98a099bd8 100644 --- a/src/Fl_System_Driver.cxx +++ b/src/Fl_System_Driver.cxx @@ -431,6 +431,9 @@ void Fl_System_Driver::remove_fd(int fd) // nothing to do, reimplement in driver if needed } +FILE *Fl_System_Driver::fopen(const char* f, const char *mode) { + return ::fopen(f, mode); +} // // End of "$Id$". diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.H b/src/drivers/Posix/Fl_Posix_System_Driver.H index e23a0b94b..fb33d9e9e 100644 --- a/src/drivers/Posix/Fl_Posix_System_Driver.H +++ b/src/drivers/Posix/Fl_Posix_System_Driver.H @@ -54,7 +54,6 @@ public: } virtual char *getenv(const char *v) { return ::getenv(v); } virtual int putenv(char* v) {return ::putenv(v);} - virtual FILE *fopen(const char* f, const char *mode) {return ::fopen(f, mode);} virtual int system(const char* cmd) {return ::system(cmd);} virtual int execvp(const char *file, char *const *argv) {return ::execvp(file, argv);} virtual int chmod(const char* f, int mode) {return ::chmod(f, mode);} -- cgit v1.2.3