diff options
| -rw-r--r-- | FL/Fl_System_Driver.H | 2 | ||||
| -rw-r--r-- | src/Fl_System_Driver.cxx | 3 | ||||
| -rw-r--r-- | src/drivers/Posix/Fl_Posix_System_Driver.H | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 8f5a8c5cb..89d18a8a2 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -86,7 +86,7 @@ public: virtual char *getenv(const char* v) {return NULL;} virtual int putenv(char* v) {return -1;} virtual int open(const char* f, int oflags, int pmode) {return -1;} - virtual FILE *fopen(const char* f, const char *mode) {return NULL;} + virtual FILE *fopen(const char* f, const char *mode); virtual int system(const char* cmd) {return -1;} virtual int execvp(const char *file, char *const *argv) {return -1;} virtual int chmod(const char* f, int mode) {return -1;} 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);} |
