summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-10 19:37:18 +0000
committerManolo Gouy <Manolo>2016-04-10 19:37:18 +0000
commit95fa60b71dceadffd65f8f135a89efb05a8d6fd7 (patch)
tree6c732ec5d896d1315a34c39cc4bc2424f6ca86d6 /FL
parent78213fc57eb11958b174b5f22172561e1998797e (diff)
Rewrite Fl_get_system_colors.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_System_Driver.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index db3784d7b..0bcc7973b 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -29,6 +29,7 @@
#include <FL/filename.H>
#include <FL/Fl_Preferences.H>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
@@ -79,6 +80,7 @@ public:
// implement these to support cross-platform file operations
virtual char *utf2mbcs(const char *s) {return (char*)s;}
virtual char *getenv(const char* v);
+ virtual int putenv(char* v) {return ::putenv(v);}
virtual int open(const char* f, int oflags, int pmode) {return -1;}
virtual FILE *fopen(const char* f, const char *mode) {return NULL;}
virtual int system(const char* cmd) {return -1;}