Commit aa6f6bd7 authored by Sam Mikes's avatar Sam Mikes
Browse files

MSVC 2013 defines conformant round(), workaround not needed

parent 78271a67
......@@ -33,13 +33,20 @@
#include "openmm/OpenMMException.h"
#include "openmm/internal/SplineFitter.h"
#ifdef _MSC_VER
#if _MSC_VER
#if _MSC_VER < 1800
/**
* We need to define this ourselves, since Visual Studio is missing round() from cmath.
*/
static int round(double x) {
return (int) (x+0.5);
}
#else
#include <cmath>
#endif // MSC_VER < 1800
#else
#include <cmath>
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment