"vscode:/vscode.git/clone" did not exist on "451d8c5f7551b8d2923ee155433225ade0f75b53"
Unverified Commit e9534c15 authored by Mike Henry's avatar Mike Henry Committed by GitHub
Browse files

add missing header and fix logic for including cmath (#3658)

parent 8292bb3a
......@@ -33,12 +33,15 @@
#define NOMINMAX
#endif
#include <algorithm>
#include "ReferenceTabulatedFunction.h"
#include "openmm/OpenMMException.h"
#include "openmm/internal/SplineFitter.h"
#ifdef _MSC_VER
#include <cmath>
#ifdef _MSC_VER
#if _MSC_VER < 1800
/**
* We need to define this ourselves, since Visual Studio is missing round() from cmath.
......@@ -46,13 +49,7 @@
static int round(double x) {
return (int) (x+0.5);
}
#else
#include <cmath>
#endif // MSC_VER < 1800
#else
#include <cmath>
#endif
#endif
static double wrap(double t, double min, double max) {
......
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