Skip to content

Commit

Permalink
Merge pull request numpy#22693 from mattip/backport-meson
Browse files Browse the repository at this point in the history
MAINT: unify NPY_NO_SIGNAL macros

[ci skip]
  • Loading branch information
rgommers authored Nov 30, 2022
2 parents 9896b46 + 14075ff commit 01d6407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numpy/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def generate_config_h(ext, build_dir):

# Signal check
if is_npy_no_signal():
moredefs.append('__NPY_PRIVATE_NO_SIGNAL')
moredefs.append('NPY_NO_SIGNAL')

# Windows checks
if sys.platform == 'win32' or os.name == 'nt':
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/multiarraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4100,7 +4100,7 @@ _vec_string(PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *NPY_UNUSED(kw
return 0;
}

#ifndef __NPY_PRIVATE_NO_SIGNAL
#ifndef NPY_NO_SIGNAL

static NPY_TLS int sigint_buf_init = 0;
static NPY_TLS NPY_SIGJMP_BUF _NPY_SIGINT_BUF;
Expand Down

0 comments on commit 01d6407

Please sign in to comment.