Skip to content

Commit 126d30f

Browse files
committed
Fix helper tests on Appveyor Windows
1 parent bba0ab8 commit 126d30f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

include/xtensor-fftw/helper.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifndef XTENSOR_FFTW_HELPER_HPP
1010
#define XTENSOR_FFTW_HELPER_HPP
1111

12+
#define _USE_MATH_DEFINES // for MSVC ("Math Constants are not defined in Standard C/C++")
13+
#include <cmath> // M_PI
14+
1215
#include <xtensor/xarray.hpp>
1316

1417
namespace xt {

test/examples.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88

99
// real life examples
1010

11+
#define _USE_MATH_DEFINES // for MSVC ("Math Constants are not defined in Standard C/C++")
12+
#include <cmath> // M_PI
13+
#include <complex>
14+
1115
#include <xtensor-fftw/basic.hpp>
1216
#include <xtensor-fftw/helper.hpp>
1317
#include <xtensor/xarray.hpp>
14-
#include <complex>
1518
#include <xtensor/xbuilder.hpp> // xt::arange
1619
#include <xtensor/xmath.hpp> // xt::sin, cos
1720
#include <xtensor/xio.hpp>

0 commit comments

Comments
 (0)