summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-09-11 08:09:00 +0000
committerManolo Gouy <Manolo>2016-09-11 08:09:00 +0000
commite1f1b3898f73388620d634af9f98970e6ee6965b (patch)
treee4d8a699f329463c70fa6cfc1ad9e69f29c2efba
parent35a5148ee833deb1bee85ad853ce70c81b30b62e (diff)
Make Fl_Native_File_Chooser_FLTK.cxx compilable with FL_PORTING on.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_Native_File_Chooser_FLTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_FLTK.cxx b/src/Fl_Native_File_Chooser_FLTK.cxx
index 2f242592c..8dff9b45e 100644
--- a/src/Fl_Native_File_Chooser_FLTK.cxx
+++ b/src/Fl_Native_File_Chooser_FLTK.cxx
@@ -145,7 +145,7 @@ int Fl_Native_File_Chooser_FLTK_Driver::show() {
// HANDLE SHOWING 'SaveAs' CONFIRM
if ( options() & Fl_Native_File_Chooser::SAVEAS_CONFIRM && type() == Fl_Native_File_Chooser::BROWSE_SAVE_FILE ) {
struct stat buf;
- if ( stat(_file_chooser->value(), &buf) != -1 ) {
+ if ( fl_stat(_file_chooser->value(), &buf) != -1 ) {
if ( buf.st_mode & S_IFREG ) { // Regular file + exists?
if ( exist_dialog() == 0 ) {
return(1);