numpy has its own compatibility layer, npy_pycompat.h and
npy_3kcompat.h header files. It supports more C compilers than
pythoncapi_compat.h: it supports __STRICT_ANSI__ (ISO C90) for example.
Rejected PR 18713: MAINT: Use pythoncapi_compat.h in npy_3kcompat.h (when it was rejected, numpy
still had code for compatibility with Python 2.7).