Commit 922bda97 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation errors on Windows

parent e7233c70
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
* This tests all the different force terms in the CUDA implementation of CustomNonbondedForce. * This tests all the different force terms in the CUDA implementation of CustomNonbondedForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "sfmt/SFMT.h" #include "sfmt/SFMT.h"
#include "openmm/Context.h" #include "openmm/Context.h"
...@@ -42,6 +45,7 @@ ...@@ -42,6 +45,7 @@
#include "openmm/NonbondedForce.h" #include "openmm/NonbondedForce.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "openmm/VerletIntegrator.h" #include "openmm/VerletIntegrator.h"
#include <cmath>
#include <iostream> #include <iostream>
#include <vector> #include <vector>
......
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
* This tests all the different force terms in the OpenCL implementation of CustomNonbondedForce. * This tests all the different force terms in the OpenCL implementation of CustomNonbondedForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "sfmt/SFMT.h" #include "sfmt/SFMT.h"
#include "openmm/Context.h" #include "openmm/Context.h"
...@@ -42,6 +45,7 @@ ...@@ -42,6 +45,7 @@
#include "openmm/NonbondedForce.h" #include "openmm/NonbondedForce.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "openmm/VerletIntegrator.h" #include "openmm/VerletIntegrator.h"
#include <cmath>
#include <iostream> #include <iostream>
#include <vector> #include <vector>
......
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
* This tests all the different force terms in the reference implementation of CustomNonbondedForce. * This tests all the different force terms in the reference implementation of CustomNonbondedForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h" #include "openmm/internal/AssertionUtilities.h"
#include "sfmt/SFMT.h" #include "sfmt/SFMT.h"
#include "openmm/Context.h" #include "openmm/Context.h"
...@@ -42,6 +45,7 @@ ...@@ -42,6 +45,7 @@
#include "openmm/NonbondedForce.h" #include "openmm/NonbondedForce.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "openmm/VerletIntegrator.h" #include "openmm/VerletIntegrator.h"
#include <cmath>
#include <iostream> #include <iostream>
#include <set> #include <set>
#include <vector> #include <vector>
......
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