summaryrefslogtreecommitdiff
path: root/src/fl_utf8.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-04-03 20:10:08 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-04-03 22:01:41 +0200
commit717a7d266b629233255ae0816c5eac8832bd17fb (patch)
treed757c34696644eed2d9de711fc00dc64619ee6b6 /src/fl_utf8.cxx
parent9aba7c9db05bde2acb67f838c075d75d62fad39c (diff)
Remove '#include <sys/stat.h>' 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.
Diffstat (limited to 'src/fl_utf8.cxx')
-rw-r--r--src/fl_utf8.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index b7d273466..efb7fa5d5 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -3,7 +3,7 @@
//
// Author: Jean-Marc Lienher ( http://oksid.ch )
// Copyright 2000-2010 by O'ksi'D.
-// Copyright 2016-2020 by Bill Spitzak and others.
+// Copyright 2016-2022 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -462,7 +462,7 @@ int fl_access(const char* f, int mode) {
\return the return value of _wstat() on Windows or stat() on other platforms.
*/
int fl_stat(const char* f, struct stat *b) {
- return Fl::system_driver()->stat(f, b);
+ return Fl::system_driver()->flstat(f, b);
}
/** Cross-platform function to change the current working directory,