Skip to content

Commit 3a070fa

Browse files
committed
MAINT: remove now-unused NPY_USE_C99_FORMAT
The need for this define was removed with gh-24888. A code search shows no external usages, and the few times this shows up on the issue tracker it's always defined to `1`.
1 parent 9de8a80 commit 3a070fa

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

numpy/_core/include/numpy/_numpyconfig.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#mesondefine NPY_SIZEOF_PY_LONG_LONG
1818
#mesondefine NPY_SIZEOF_LONGLONG
1919

20-
#mesondefine NPY_USE_C99_FORMATS
21-
2220
#mesondefine NPY_NO_SIGNAL
2321
#mesondefine NPY_NO_SMP
2422

numpy/_core/meson.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,6 @@ endif
498498
# TODO: document this (search for NPY_NOSMP in C API docs)
499499
cdata.set10('NPY_NO_SMP', get_option('disable-threading'))
500500

501-
# Check whether we can use inttypes (C99) formats
502-
if cc.has_header_symbol('inttypes.h', 'PRIdPTR')
503-
cdata.set10('NPY_USE_C99_FORMATS', true)
504-
endif
505-
506501
visibility_hidden = ''
507502
if cc.has_function_attribute('visibility:hidden') and host_machine.system() != 'cygwin'
508503
visibility_hidden = '__attribute__((visibility("hidden")))'

0 commit comments

Comments
 (0)