From 717a7d266b629233255ae0816c5eac8832bd17fb Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 3 Apr 2022 20:10:08 +0200 Subject: Remove '#include ' from FL/platform_types.h - Add this include statement only where needed. - Rename Fl_System_Driver::stat() to flstat(). This fixes an issue when using some (!) MinGW 64-bit build systems that obviously '#define stat _stat64' or similar. This would result in compiler problems if 'stat()' is a member function of Fl_System_Driver. --- src/Fl_System_Driver.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_System_Driver.H') diff --git a/src/Fl_System_Driver.H b/src/Fl_System_Driver.H index d008f6a26..b342fcb29 100644 --- a/src/Fl_System_Driver.H +++ b/src/Fl_System_Driver.H @@ -112,7 +112,7 @@ public: virtual int execvp(const char * /*file*/, char *const * /*argv*/) {return -1;} virtual int chmod(const char* /*f*/, int /*mode*/) {return -1;} virtual int access(const char* /*f*/, int /*mode*/) { return -1;} - virtual int stat(const char* /*f*/, struct stat *) { return -1;} + virtual int flstat(const char* /*f*/, struct stat *) { return -1;} virtual char *getcwd(char* /*b*/, int /*l*/) {return NULL;} virtual int chdir(const char*) {return -1;} virtual int unlink(const char*) {return -1;} -- cgit v1.2.3