Commit 803af89b authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error on Windows

parent bfed4705
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
* This tests the CUDA implementation of CustomTorsionForce. * This tests the CUDA implementation of CustomTorsionForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "../../../tests/AssertionUtilities.h" #include "../../../tests/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "CudaPlatform.h" #include "CudaPlatform.h"
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
* This tests the OpenCL implementation of CustomTorsionForce. * This tests the OpenCL implementation of CustomTorsionForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "../../../tests/AssertionUtilities.h" #include "../../../tests/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "OpenCLPlatform.h" #include "OpenCLPlatform.h"
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
* This tests the reference implementation of CustomTorsionForce. * This tests the reference implementation of CustomTorsionForce.
*/ */
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "../../../tests/AssertionUtilities.h" #include "../../../tests/AssertionUtilities.h"
#include "openmm/Context.h" #include "openmm/Context.h"
#include "ReferencePlatform.h" #include "ReferencePlatform.h"
......
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