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
This commit is contained in:
Manolo Gouy 2016-09-11 08:09:00 +00:00
parent 35a5148ee8
commit e1f1b3898f

View File

@ -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);