Skip to content

Commit bba0ab8

Browse files
committed
Fix helper tests on Appveyor Windows
1 parent 37bf9c8 commit bba0ab8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/helper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
* The full license is in the file LICENSE, distributed with this software.
77
*/
88

9+
#define _USE_MATH_DEFINES // for MSVC ("Math Constants are not defined in Standard C/C++")
10+
#include <cmath> // M_PI
11+
912
#include <xtensor/xarray.hpp>
1013
#include <xtensor-fftw/helper.hpp>
11-
#include <cmath> // M_PI
1214

1315
#include "gtest/gtest.h"
1416

0 commit comments

Comments
 (0)