1
0
Fork 0

clang / libc++ fixes for JSBSim

(needs to be upstreamed too)
This commit is contained in:
James Turner 2014-01-25 10:34:19 +00:00
parent da05f403b1
commit 64cbc06003
2 changed files with 6 additions and 2 deletions

View file

@ -73,10 +73,14 @@ CLASS DECLARATION
extern std::string& to_lower(std::string& str);
extern bool is_number(const std::string& str);
std::vector <std::string> split(std::string str, char d);
/* Comment out to_string functions when they are defined already - C++ 11 defines these */
// libc++ has these as built-ins for all C++ language versions
#if !defined(_LIBCPP_VERSION)
extern std::string to_string(int);
extern std::string to_string(double);
extern std::string to_string(float);
#endif
extern std::string replace(std::string str, const std::string& old, const std::string& newstr);
#else
#include <cctype>

View file

@ -64,7 +64,7 @@ FGSurface::FGSurface()
isSolid = true;
}
FGSurface::FGSurface(FGFDMExec* fdmex = NULL)
FGSurface::FGSurface(FGFDMExec* fdmex)
{
frictionFactor = 1.0;
rollingFCoeff = 0.02;