fgadmin: fl_stat is in FLTK 1.3 only
This commit is contained in:
parent
3eca8f7dc0
commit
c270a45f20
1 changed files with 4 additions and 0 deletions
|
@ -256,7 +256,11 @@ void FGAdminUI::install_selected() {
|
||||||
SGPath file( source );
|
SGPath file( source );
|
||||||
file.append( f );
|
file.append( f );
|
||||||
struct stat info;
|
struct stat info;
|
||||||
|
#if (FL_MAJOR_VERSION > 1 || ( FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION >= 3 ))
|
||||||
fl_stat( file.str().c_str(), &info );
|
fl_stat( file.str().c_str(), &info );
|
||||||
|
#else
|
||||||
|
stat( file.str().c_str(), &info );
|
||||||
|
#endif
|
||||||
float old_max = progress->maximum();
|
float old_max = progress->maximum();
|
||||||
progress->maximum( info.st_size );
|
progress->maximum( info.st_size );
|
||||||
progress_label = "Installing ";
|
progress_label = "Installing ";
|
||||||
|
|
Loading…
Add table
Reference in a new issue