Skip to content

Commit fd2d76e

Browse files
authored
BLD: define _USE_MATH_DEFINES in c_args (#870)
Python.h includes <math.h> before cwt.template.c gets a chance to define _USE_MATH_DEFINES, so the define never takes effect and M_PI is left undeclared wherever math.h gates it on that macro.
1 parent c55a14e commit fd2d76e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywt/_extensions/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ _cython_tree = [
6767
fs.copyfile('wavelets_list.pxi'),
6868
]
6969

70-
c_args = ['-DPY_EXTENSION']
70+
c_args = ['-DPY_EXTENSION', '-D_USE_MATH_DEFINES']
7171

7272
libc_wt = static_library('c_wt',
7373
sources,

0 commit comments

Comments
 (0)