]> git.mxchange.org Git - flightgear.git/commitdiff
fgadmin: fl_stat is in FLTK 1.3 only
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 5 Nov 2011 06:23:48 +0000 (07:23 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 5 Nov 2011 06:23:48 +0000 (07:23 +0100)
utils/fgadmin/src/fgadmin_funcs.cxx

index c05b9e92914248345ef31ec380df049f8b2ee54d..90f1c90125aeaa0e5de5de5059b930f7f747f360 100644 (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 ";