Skip to content

Commit 5260327

Browse files
committed
Extra sausage for win math
1 parent abd7b39 commit 5260327

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/c/test_pbc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@
1212

1313
#include "common.h"
1414
#include <complex.h>
15-
#include <math.h>
1615
#include <qiskit.h>
1716
#include <string.h>
1817

18+
#ifdef _MSC_VER
19+
#define _USE_MATH_DEFINES
20+
#endif
21+
#include <math.h> // for M_PI and friends
22+
1923
/**
2024
* Test gate counts after Litinski transformation.
2125
*/

0 commit comments

Comments
 (0)