1
0
Fork 0

fgadmin: fl_stat is in FLTK 1.3 only

This commit is contained in:
Frederic Bouvier 2011-11-05 07:23:48 +01:00
parent 3eca8f7dc0
commit c270a45f20

View file

@ -256,7 +256,11 @@ void FGAdminUI::install_selected() {
SGPath file( source );
file.append( f );
struct stat info;
#if (FL_MAJOR_VERSION > 1 || ( FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION >= 3 ))
fl_stat( file.str().c_str(), &info );
#else
stat( file.str().c_str(), &info );
#endif
float old_max = progress->maximum();
progress->maximum( info.st_size );
progress_label = "Installing ";