Portability: Fix compile errors on MSVC (cmath)
From Scott (xDraconian)
This commit is contained in:
parent
0cff350dab
commit
f2d6b76b13
28 changed files with 30 additions and 34 deletions
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <Main/globals.hxx>
|
||||
#include <Scenery/scenery.hxx>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
using std::string;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <Main/globals.hxx>
|
||||
#include <Scenery/scenery.hxx>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <Main/globals.hxx>
|
||||
#include <Scenery/scenery.hxx>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
using std::string;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
//
|
||||
// $Id$
|
||||
#include "fgwind.hxx"
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <stdio.h>
|
||||
|
||||
FGWindModulator::FGWindModulator() :
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _MATH_HPP
|
||||
#define _MATH_HPP
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace yasim {
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
#include <simgear/constants.h>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
# include <winsock2.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <simgear/constants.h>
|
||||
#include <simgear/math/interpolater.hxx>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
#include <math.h> // fabs()
|
||||
#include <cmath> // fabs()
|
||||
|
||||
#include "attitude_indicator.hxx"
|
||||
#include <Main/fg_props.hxx>
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
|
||||
#include <string>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <fstream>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <deque>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
|
Loading…
Add table
Reference in a new issue