mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 04:42:48 +00:00
Make the fcs extension compile without C++11
This commit is contained in:
@ -113,9 +113,11 @@ void __stdcall RVExtension(char *output, int outputSize, const char *function) {
|
|||||||
double distance = std::stod(argStrings[3]);
|
double distance = std::stod(argStrings[3]);
|
||||||
|
|
||||||
double result = getSolution(initSpeed, airFriction, angleTarget, distance);
|
double result = getSolution(initSpeed, airFriction, angleTarget, distance);
|
||||||
std::string resultString = std::to_string(result);
|
|
||||||
|
|
||||||
strcpy(output, resultString.c_str());
|
std::stringstream sstream;
|
||||||
|
sstream << result;
|
||||||
|
|
||||||
|
strcpy(output, sstream.str().c_str());
|
||||||
output[outputSize - 1] = '\0';
|
output[outputSize - 1] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user