fgadmin: include sys/stat if fltk < 1.3
This commit is contained in:
parent
c270a45f20
commit
2e2accfe06
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue