Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0b5df commit 3818675Copy full SHA for 3818675
1 file changed
setupext.py
@@ -898,6 +898,11 @@ def add_flags(self, ext):
898
ext.define_macros.append(('NPY_NO_DEPRECATED_API',
899
'NPY_1_7_API_VERSION'))
900
901
+ # Allow the numpy NPY_INTP_FMT macro to be used in C++.
902
+ # On gcc this translates to PRIdPTR which needs
903
+ # __STDC_FORMAT_MACROS to be usable in c++
904
+ ext.define_macros.append(('__STDC_FORMAT_MACROS', 1))
905
+
906
def get_setup_requires(self):
907
return ['numpy>=1.6']
908
0 commit comments