1
0
Fork 0

fgadmin: include sys/stat if fltk < 1.3

This commit is contained in:
Frederic Bouvier 2011-11-05 07:28:44 +01:00
parent c270a45f20
commit 2e2accfe06

View file

@ -24,6 +24,7 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <set> #include <set>
#include <sys/stat.h>
#ifdef _WIN32 #ifdef _WIN32
# include <direct.h> # include <direct.h>
@ -255,7 +256,7 @@ void FGAdminUI::install_selected() {
f = install_box->text( i ); f = install_box->text( i );
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 )) #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 #else