// already depending on how you defined FG_HAVE_STD_INCLUDES, but I
// can go ahead and add this -- CLO
#ifdef __MWERKS__
-# include <math.h> // needed fabs()
+FG_USING_STD(sprintf);
+FG_USING_STD(fabs);
#endif
#include STL_STRING
#endif
#ifdef __MWERKS__
-# define cerr std::cerr
-# define endl std::endl
FG_USING_STD(iostream);
#endif
#ifndef _JUPITER_HXX_
#define _JUPITER_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Jupiter : public CelestialBody
{
#ifndef _MARS_HXX_
#define _MARS_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Mars : public CelestialBody
{
#ifndef _NEPTUNE_HXX_
#define _NEPTUNE_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Neptune : public CelestialBody
{
#ifndef _SATURN_HXX_
#define _SATURN_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Saturn : public CelestialBody
{
#ifndef _URANUS_HXX_
#define _URANUS_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Uranus : public CelestialBody
{
#ifndef _VENUS_HXX_
#define _VENUS_HXX_
-#include "celestialBody.hxx"
-#include "star.hxx"
+#include <simgear/ephemeris/celestialBody.hxx>
+#include <simgear/ephemeris/star.hxx>
class Venus : public CelestialBody
{
#include STL_STRING
#include <simgear/math/sg_types.hxx>
-
-#include "iochannel.hxx"
+#include <simgear/io/iochannel.hxx>
FG_USING_STD(string);
# include <math.h>
#endif
-#include "localconsts.hxx"
+#include <simgear/math/localconsts.hxx>
// I don't understand ... <math.h> or <cmath> should be included
// already depending on how you defined FG_HAVE_STD_INCLUDES, but I
m_locationCart = sgPolarToCart3d( p );
Point3D up( ulongitude, ulatitude, ualtitude+EQUATORIAL_RADIUS_M );
m_upperLocationPolar = up;
- m_upperLocationCart = fgPolarToCart3d( up );
+ m_upperLocationCart = sgPolarToCart3d( up );
s = t;
m_pFlag = s[0];
}
# include <config.h>
#endif
+#include <string.h> // strcmp()
+#include <stdlib.h> // atof() atoi()
+
#include <simgear/debug/logstream.hxx>
#include <simgear/xml/easyxml.hxx>
#include <string>
#include <vector>
-using std::istream;
-using std::ifstream;
-using std::ostream;
-using std::ofstream;
-using std::string;
-using std::vector;
+FG_USING_STD(ofstream);
+FG_USING_STD(ifstream);
+FG_USING_STD(string);
+FG_USING_STD(vector);
+
\f
////////////////////////////////////////////////////////////////////////
case SGValue::STRING:
return "string";
}
+
+ return "unknown"; // avoid a compiler warning
}
static void
writeData (ostream &output, const string &data)
{
- for (int i = 0; i < data.size(); i++) {
+ for (int i = 0; i < (int)data.size(); i++) {
switch (data[i]) {
case '&':
output << "&";
FG_USING_STD(string);
FG_USING_STD(vector);
-#include "waypoint.hxx"
+#include <simgear/route/waypoint.hxx>
class SGRoute {
enum SGCloudType {
SG_CLOUD_OVERCAST = 0,
- SG_CLOUD_MOSTLY_CLOUDY = 1,
- SG_CLOUD_MOSTLY_SUNNY = 2,
- SG_CLOUD_CIRRUS = 3,
+ SG_CLOUD_MOSTLY_CLOUDY,
+ SG_CLOUD_MOSTLY_SUNNY,
+ SG_CLOUD_CIRRUS
};
#include "stars.hxx"
-#ifdef _MSC_VER
FG_USING_STD(cout);
FG_USING_STD(endl);
-#endif
// Set up star rendering call backs
/* User specified the empty string; use UTC explicitly. */
tz = "Universal";
-#ifdef MACOS
+#ifdef macintosh
/* as you well know, mac paths contain leading colon, this code
messes things up.... */
#else
#include <simgear/compiler.h>
+#include <string.h> // strcmp()
+
#include "easyxml.hxx"
#include "xmlparse.h"