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
This commit is contained in:
Manolo Gouy 2016-04-27 17:25:17 +00:00
parent b870641f34
commit 5a4d10faea
3 changed files with 4 additions and 2 deletions

View File

@ -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;}

View File

@ -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$".

View File

@ -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);}