]> git.mxchange.org Git - flightgear.git/commitdiff
Geoff McLane: Fix compile error due to missing include.
authorThorstenB <brehmt@gmail.com>
Sun, 8 Apr 2012 16:46:17 +0000 (18:46 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 8 Apr 2012 16:46:17 +0000 (18:46 +0200)
utils/fgadmin/src/fgadmin.cxx
utils/fgadmin/src/fgadmin_funcs.cxx

index 71ad9bd0724703bb3addddc8a9ab679a899d1d7f..fc47acf34a7f25db1ab74ce6dd223a7d7489e53e 100644 (file)
@@ -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");
index 7b251ea0da3caeafda1ec85ecedbbd8c3292d1ae..014e4bc70b4a8fb772efc9e043a434235994ab46 100644 (file)
 
 #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();