Geoff McLane: Fix compile error due to missing include.
This commit is contained in:
parent
da2ee04eea
commit
b920fc27b1
2 changed files with 7 additions and 4 deletions
|
@ -80,9 +80,7 @@ void FGAdminUI::cb_dest_desel_all(Fl_Button* o, void* v) {
|
|||
}
|
||||
|
||||
FGAdminUI::FGAdminUI() {
|
||||
Fl_Double_Window* w;
|
||||
{ Fl_Double_Window* o = main_window = new Fl_Double_Window(465, 435, "FlightGear Admin Wizard");
|
||||
w = o;
|
||||
o->callback((Fl_Callback*)cb_main_window, (void*)(this));
|
||||
{ Fl_Group* o = new Fl_Group(5, 405, 455, 25);
|
||||
{ Fl_Button* o = quit_b = new Fl_Button(375, 405, 85, 25, "Quit");
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
# include <direct.h>
|
||||
# include <io.h>
|
||||
#define unlink _unlink
|
||||
#define mkdir _mkdir
|
||||
#else // !_WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <FL/Fl_File_Chooser.H>
|
||||
|
@ -128,7 +133,7 @@ void FGAdminUI::select_install_source() {
|
|||
source.c_str(),
|
||||
0 );
|
||||
if ( p != 0 ) {
|
||||
source = p;
|
||||
source = p;
|
||||
source_text->value( p );
|
||||
prefs->set( "install-source", p );
|
||||
prefs->flush();
|
||||
|
@ -142,7 +147,7 @@ void FGAdminUI::select_install_dest() {
|
|||
dest.c_str(),
|
||||
0 );
|
||||
if ( p != 0 ) {
|
||||
dest = p;
|
||||
dest = p;
|
||||
dest_text->value( p );
|
||||
prefs->set( "scenery-dest", p );
|
||||
prefs->flush();
|
||||
|
|
Loading…
Add table
Reference in a new issue