summaryrefslogtreecommitdiff
path: root/FL/Fl_System_Driver.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_System_Driver.H')
-rw-r--r--FL/Fl_System_Driver.H7
1 files changed, 6 insertions, 1 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index dfdd4c3e3..e49306a96 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -87,7 +87,12 @@ 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 int open_ext(const char* f, int translation, int oflags, int pmode) {return this->open(f, oflags, pmode);}
+
+ // 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) {
+ return this->open(f, oflags, pmode);
+ }
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;}