summaryrefslogtreecommitdiff
path: root/numpy/f2py/rules.py
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2021-09-29 06:26:13 +0000
committerGitHub <noreply@github.com>2021-09-29 01:26:13 -0500
commit26ce52951bf176ffb30c1044414036b728e0849d (patch)
tree0c0688f31ba8fd684dc6e5fea30f93d2bf417f05 /numpy/f2py/rules.py
parentb0e1a445d3134e4744369ee1a34f7a44fd867578 (diff)
downloadnumpy-26ce52951bf176ffb30c1044414036b728e0849d.tar.gz
MAINT: Reduce DepreciationWarnings, use more data API types for f2py (#19978)
* MAINT: More data type API for f2py * MAINT: Less DeprecationWarnings for f2py * MAINT: Fix casts for complex arrays in f2py
Diffstat (limited to 'numpy/f2py/rules.py')
-rwxr-xr-xnumpy/f2py/rules.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py
index 587ae2e5f..66f11f6b5 100755
--- a/numpy/f2py/rules.py
+++ b/numpy/f2py/rules.py
@@ -120,6 +120,10 @@ module_rules = {
extern \"C\" {
#endif
+#ifndef PY_SSIZE_T_CLEAN
+#define PY_SSIZE_T_CLEAN
+#endif /* PY_SSIZE_T_CLEAN */
+
""" + gentitle("See f2py2e/cfuncs.py: includes") + """
#includes#
#includes0#