From e1f1b3898f73388620d634af9f98970e6ee6965b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 11 Sep 2016 08:09:00 +0000 Subject: 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 --- src/Fl_Native_File_Chooser_FLTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3