using clang to compile numpy exposes a redefinition of Py_hash_t
Py_hash_t
is being redefined. gcc doesn't mind, but clang errors. This came up when trying to build NumPy wheels for macOS https://github.com/numpy/numpy/pull/20528#issuecomment-988099113
In file included from /tmp/pypy3.8-v7.3.7-osx64/include/pypy3.8/Python.h:73:
/tmp/pypy3.8-v7.3.7-osx64/include/pypy3.8/pyport.h:68:20: \
error: redefinition of typedef 'Py_hash_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef Py_ssize_t Py_hash_t;
^
/tmp/pypy3.8-v7.3.7-osx64/include/pypy3.8/cpyext_object.h:9:14: \
note: previous definition is here
typedef long Py_hash_t;