Skip to content

Commit cdbb118

Browse files
fjankoviclaude
andcommitted
BLD: define _USE_MATH_DEFINES in c_args
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. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent c55a14e commit cdbb118

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)