1
0
Fork 0

cygwin related fixes, and some minor future release related maintenance

work.
This commit is contained in:
durk 2008-02-04 20:03:52 +00:00
parent 15cd4284fb
commit ecc6548d71
10 changed files with 50 additions and 3 deletions

View file

@ -19,7 +19,7 @@ EXTRA_DIST = \
Thanks Thanks
dist-hook: dist-hook:
(cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl) (cd $(top_srcdir); $(HOME)/src/FlightGear-0.9/admin/am2dsp.pl)
(cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \ (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
-cf - docs-mini ) | (cd $(distdir); tar xvf -) -cf - docs-mini ) | (cd $(distdir); tar xvf -)
rm -rf `find $(distdir)/projects -name CVS` rm -rf `find $(distdir)/projects -name CVS`

View file

@ -683,6 +683,8 @@ AC_CONFIG_FILES([ \
tests/Makefile \ tests/Makefile \
utils/Makefile \ utils/Makefile \
utils/GPSsmooth/Makefile \ utils/GPSsmooth/Makefile \
utils/fgadmin/Makefile
utils/fgadmin/src/Makefile \
utils/js_server/Makefile \ utils/js_server/Makefile \
utils/Modeller/Makefile \ utils/Modeller/Makefile \
utils/TerraSync/Makefile \ utils/TerraSync/Makefile \

View file

@ -791,7 +791,7 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat,
//closest = current; //closest = current;
previousInstruction = current->getSpeedAdjustment(); previousInstruction = current->getSpeedAdjustment();
double mindist = HUGE; double mindist = HUGE_VAL;
if (activeTraffic.size()) if (activeTraffic.size())
{ {
double course, dist, bearing, minbearing; double course, dist, bearing, minbearing;

View file

@ -38,6 +38,10 @@
# include <windows.h> # include <windows.h>
#endif #endif
#ifdef __CYGWIN__
#include <ieeefp.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -32,6 +32,13 @@
* TODO * TODO
* - NSC & mil. color codes * - NSC & mil. color codes
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.h>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>

View file

@ -12,7 +12,7 @@ js_demo_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul
fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h
fgjs_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul \ fgjs_LDADD = -lplibjs -lplibul $(base_LIBS) $(joystick_LIBS) \
-lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/Main INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/Main

View file

@ -1189,6 +1189,16 @@ fgOptRunway( const char *arg )
return FG_OPTIONS_OK; return FG_OPTIONS_OK;
} }
static int
fgOptParking( const char *arg )
{
cerr << "Processing argument " << arg << endl;
fgSetString("/sim/presets/parking", arg );
fgSetBool ("/sim/presets/parking-requested", true );
return FG_OPTIONS_OK;
}
static map<string,size_t> fgOptionMap; static map<string,size_t> fgOptionMap;
/* /*
@ -1395,6 +1405,7 @@ struct OptionDesc {
{"min-status", true, OPTION_STRING, "/sim/aircraft-min-status", false, "all", 0 }, {"min-status", true, OPTION_STRING, "/sim/aircraft-min-status", false, "all", 0 },
{"livery", true, OPTION_FUNC, "", false, "", fgOptLivery }, {"livery", true, OPTION_FUNC, "", false, "", fgOptLivery },
{"ai-scenario", true, OPTION_FUNC, "", false, "", fgOptScenario }, {"ai-scenario", true, OPTION_FUNC, "", false, "", fgOptScenario },
{"parking-id", true, OPTION_FUNC, "", false, "", fgOptParking },
{0} {0}
}; };

View file

@ -27,6 +27,13 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
// //
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <simgear/io/iochannel.hxx> #include <simgear/io/iochannel.hxx>

View file

@ -1,3 +1,11 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> // exit() #include <stdlib.h> // exit()

View file

@ -20,6 +20,14 @@
// //
// $Id$ // $Id$
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <stdlib.h> // atoi() atof() abs() system() #include <stdlib.h> // atoi() atof() abs() system()