From: curt Date: Thu, 22 Jan 1998 02:59:23 +0000 (+0000) Subject: Changed #ifdef FILE_H to #ifdef _FILE_H X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=327ccd93a4323d1094ff84488b73bd59f5edcf70;p=simgear.git Changed #ifdef FILE_H to #ifdef _FILE_H --- diff --git a/Astro/moon.h b/Astro/moon.h index b81d9818..b5f803e0 100644 --- a/Astro/moon.h +++ b/Astro/moon.h @@ -22,8 +22,8 @@ **************************************************************************/ -#ifndef _MOON_H_ -#define _MOON_H_ +#ifndef _MOON_H +#define _MOON_H #include @@ -47,14 +47,17 @@ struct CelestialCoord fgCalculateMoon(struct OrbElements Params, extern struct OrbElements pltOrbElements[9]; -#endif /* _MOON_H_ */ +#endif /* _MOON_H */ /* $Log$ -/* Revision 1.3 1998/01/19 19:26:58 curt -/* Merged in make system changes from Bob Kuehne -/* This should simplify things tremendously. +/* Revision 1.4 1998/01/22 02:59:27 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.3 1998/01/19 19:26:58 curt + * Merged in make system changes from Bob Kuehne + * This should simplify things tremendously. + * * Revision 1.2 1998/01/19 18:40:17 curt * Tons of little changes to clean up the code and to remove fatal errors * when building with the c++ compiler. diff --git a/Astro/orbits.c b/Astro/orbits.c index 5ce2ae94..432dfc7d 100644 --- a/Astro/orbits.c +++ b/Astro/orbits.c @@ -23,6 +23,7 @@ **************************************************************************/ +#include #include #include @@ -81,7 +82,7 @@ double fgCalcEccAnom(double M, double e) do { E1 = E0 - (E0 - e * sin(E0) - M) / (1 - e * cos(E0)); - diff = abs(E0 - E1); + diff = fabs(E0 - E1); E0 = E1; } while (diff > fgDegToRad(0.001)); @@ -173,10 +174,13 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t) /* $Log$ -/* Revision 1.2 1998/01/19 19:26:58 curt -/* Merged in make system changes from Bob Kuehne -/* This should simplify things tremendously. +/* Revision 1.3 1998/01/22 02:59:27 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.2 1998/01/19 19:26:58 curt + * Merged in make system changes from Bob Kuehne + * This should simplify things tremendously. + * * Revision 1.1 1998/01/07 03:16:17 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ * diff --git a/Astro/orbits.h b/Astro/orbits.h index daf99dc2..d9ceb9de 100644 --- a/Astro/orbits.h +++ b/Astro/orbits.h @@ -23,8 +23,8 @@ **************************************************************************/ -#ifndef ORBITS_H -#define ORBITS_H +#ifndef _ORBITS_H +#define _ORBITS_H #include @@ -77,14 +77,17 @@ void fgSolarSystemInit(struct fgTIME t); void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t); -#endif /* ORBITS_H */ +#endif /* _ORBITS_H */ /* $Log$ -/* Revision 1.2 1998/01/19 19:26:58 curt -/* Merged in make system changes from Bob Kuehne -/* This should simplify things tremendously. +/* Revision 1.3 1998/01/22 02:59:27 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.2 1998/01/19 19:26:58 curt + * Merged in make system changes from Bob Kuehne + * This should simplify things tremendously. + * * Revision 1.1 1998/01/07 03:16:17 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ * diff --git a/Astro/planets.h b/Astro/planets.h index 6cf87489..d5f10b90 100644 --- a/Astro/planets.h +++ b/Astro/planets.h @@ -23,8 +23,8 @@ **************************************************************************/ -#ifndef PLANETS_H -#define PLANETS_H +#ifndef _PLANETS_H +#define _PLANETS_H struct CelestialCoord fgCalculatePlanet(struct OrbElements planet, @@ -35,9 +35,12 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet, /* $Log$ -/* Revision 1.1 1998/01/07 03:16:18 curt -/* Moved from .../Src/Scenery/ to .../Src/Astro/ +/* Revision 1.2 1998/01/22 02:59:28 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.1 1998/01/07 03:16:18 curt + * Moved from .../Src/Scenery/ to .../Src/Astro/ + * * Revision 1.3 1997/12/30 16:36:53 curt * Merged in Durk's changes ... * diff --git a/Astro/sky.h b/Astro/sky.h index 0479a4b9..7e1275dd 100644 --- a/Astro/sky.h +++ b/Astro/sky.h @@ -24,6 +24,10 @@ **************************************************************************/ +#ifndef _SKY_H +#define _SKY_H + + /* (Re)generate the display list */ void fgSkyInit( void ); @@ -34,11 +38,17 @@ void fgSkyColorsInit( void ); void fgSkyRender( void ); +#endif /* _SKY_H */ + + /* $Log$ -/* Revision 1.2 1998/01/19 18:40:17 curt -/* Tons of little changes to clean up the code and to remove fatal errors -/* when building with the c++ compiler. +/* Revision 1.3 1998/01/22 02:59:28 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.2 1998/01/19 18:40:17 curt + * Tons of little changes to clean up the code and to remove fatal errors + * when building with the c++ compiler. + * * Revision 1.1 1998/01/07 03:16:19 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ * diff --git a/Astro/stars.h b/Astro/stars.h index b08ffda9..e510f7b5 100644 --- a/Astro/stars.h +++ b/Astro/stars.h @@ -24,8 +24,8 @@ **************************************************************************/ -#ifndef STARS_H -#define STARS_H +#ifndef _STARS_H +#define _STARS_H #define FG_MAX_STARS 500 @@ -40,14 +40,17 @@ void fgStarsRender( void ); extern struct OrbElements pltOrbElements[9]; extern struct fgTIME cur_time_params; -#endif /* STARS_H */ +#endif /* _STARS_H */ /* $Log$ -/* Revision 1.2 1998/01/19 18:40:18 curt -/* Tons of little changes to clean up the code and to remove fatal errors -/* when building with the c++ compiler. +/* Revision 1.3 1998/01/22 02:59:28 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.2 1998/01/19 18:40:18 curt + * Tons of little changes to clean up the code and to remove fatal errors + * when building with the c++ compiler. + * * Revision 1.1 1998/01/07 03:16:20 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ * diff --git a/Astro/sun.h b/Astro/sun.h index 9683462c..4f4a7be3 100644 --- a/Astro/sun.h +++ b/Astro/sun.h @@ -23,8 +23,8 @@ **************************************************************************/ -#ifndef SUN_H -#define SUN_H +#ifndef _SUN_H +#define _SUN_H struct SunPos fgCalcSunPos(struct OrbElements sunParams); @@ -37,14 +37,17 @@ void fgSunInit( void ); void fgSunRender( void ); -#endif /* SUN_H */ +#endif /* _SUN_H */ /* $Log$ -/* Revision 1.2 1998/01/19 18:40:19 curt -/* Tons of little changes to clean up the code and to remove fatal errors -/* when building with the c++ compiler. +/* Revision 1.3 1998/01/22 02:59:29 curt +/* Changed #ifdef FILE_H to #ifdef _FILE_H /* + * Revision 1.2 1998/01/19 18:40:19 curt + * Tons of little changes to clean up the code and to remove fatal errors + * when building with the c++ compiler. + * * Revision 1.1 1998/01/07 03:16:21 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ *