1
0
Fork 0

Portability: Fix compile errors on MSVC (cmath)

From Scott (xDraconian)
This commit is contained in:
James Turner 2015-03-24 11:11:42 -05:00
parent 0cff350dab
commit f2d6b76b13
28 changed files with 30 additions and 34 deletions

View file

@ -22,7 +22,7 @@
#ifndef _FG_AIBALLISTIC_HXX
#define _FG_AIBALLISTIC_HXX
#include <math.h>
#include <cmath>
#include <vector>
#include <simgear/structure/SGSharedPtr.hxx>
#include <simgear/scene/material/mat.hxx>

View file

@ -28,7 +28,7 @@
#include <simgear/sg_inlines.h>
#include <simgear/math/sg_geodesy.hxx>
#include <math.h>
#include <cmath>
#include <Main/util.hxx>
#include "AICarrier.hxx"

View file

@ -30,7 +30,7 @@
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h>
#include <math.h>
#include <cmath>
#include <Main/util.hxx>
#include <Viewer/viewer.hxx>

View file

@ -21,7 +21,7 @@
#ifndef _FG_AIGROUNDVEHICLE_HXX
#define _FG_AIGROUNDVEHICLE_HXX
#include <math.h>
#include <cmath>
#include <vector>
#include <simgear/structure/SGSharedPtr.hxx>
#include <simgear/scene/material/mat.hxx>

View file

@ -26,7 +26,7 @@
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <string>
#include <math.h>
#include <cmath>
using std::string;

View file

@ -26,7 +26,7 @@
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <string>
#include <math.h>
#include <cmath>
#include <cstdlib>
#include <time.h>

View file

@ -28,7 +28,7 @@
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <string>
#include <math.h>
#include <cmath>
using std::string;

View file

@ -24,7 +24,7 @@
# include <config.h>
#endif
#include <math.h>
#include <cmath>
#include <algorithm>
#include <fstream>
#include <map>

View file

@ -25,7 +25,7 @@
# include <config.h>
#endif
#include <math.h>
#include <cmath>
#include <cstdlib>
#include <cstring>

View file

@ -23,7 +23,7 @@
# include <config.h>
#endif
#include <math.h>
#include <cmath>
#include <boost/tuple/tuple.hpp>

View file

@ -26,11 +26,7 @@
#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/props/tiedpropertylist.hxx>
#ifdef SG_HAVE_STD_INCLUDES
# include <cmath>
#else
# include <math.h>
#endif
#include <cmath>
class FGEnvironment;
class FGClouds;

View file

@ -20,7 +20,7 @@
//
// $Id$
#include "fgwind.hxx"
#include <math.h>
#include <cmath>
#include <stdio.h>
FGWindModulator::FGWindModulator() :

View file

@ -35,7 +35,7 @@
#include <Main/util.hxx>
#include <Scenery/scenery.hxx>
#include <string>
#include <math.h>
#include <cmath>
#include <simgear/sg_inlines.h>
using std::string;

View file

@ -1,7 +1,7 @@
#ifndef _MATH_HPP
#define _MATH_HPP
#include <math.h>
#include <cmath>
namespace yasim {

View file

@ -73,7 +73,7 @@
*/
#include <math.h>
#include <cmath>
#include <simgear/compiler.h>
#include <simgear/constants.h>

View file

@ -32,7 +32,7 @@
# include <winsock2.h>
#endif
#include <math.h>
#include <cmath>
#include <iostream>
#include <fstream>

View file

@ -8,7 +8,7 @@
# include "config.h"
#endif
#include <math.h>
#include <cmath>
#include <simgear/constants.h>
#include <simgear/math/interpolater.hxx>

View file

@ -16,7 +16,7 @@
#include <string>
#include <sstream>
#include <math.h> // fabs()
#include <cmath> // fabs()
#include "attitude_indicator.hxx"
#include <Main/fg_props.hxx>

View file

@ -58,7 +58,7 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <cmath>
#include <string>
#include <sstream>

View file

@ -17,7 +17,7 @@
#include <iostream>
#include <string>
#include <sstream>
#include <math.h> // fabs()
#include <cmath> // fabs()
#include <Main/fg_props.hxx>
#include <Main/util.hxx>

View file

@ -91,7 +91,7 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <cmath>
#include <string>
#include <sstream>

View file

@ -33,10 +33,10 @@
#include <boost/foreach.hpp>
#include <math.h> // rint()
#include <cmath> // rint()
#include <stdio.h>
#include <stdlib.h> // atof(), atoi()
#include <string.h> // strcmp()
#include <stdlib.h> // atof(), atoi()
#include <string.h> // strcmp()
#include <algorithm>
#include <iostream>

View file

@ -23,7 +23,7 @@
#include <simgear/compiler.h>
#include <math.h>
#include <cmath>
#include <cstdlib>

View file

@ -37,7 +37,7 @@
#endif
#include <errno.h>
#include <math.h>
#include <cmath>
#include <cstdio>
#include <string>

View file

@ -38,7 +38,7 @@
#endif
#include <errno.h>
#include <math.h>
#include <cmath>
#include <string>
#include <cstdio>

View file

@ -21,7 +21,7 @@
# include <config.h>
#endif
#include <math.h>
#include <cmath>
#include <iostream>
#include <stdlib.h>
#include <fstream>

View file

@ -22,7 +22,7 @@
# include <config.h>
#endif
#include <math.h>
#include <cmath>
#include <stdlib.h>
#include <deque>

View file

@ -33,7 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <cmath>
#include <string>
#include <sstream>