summaryrefslogtreecommitdiffstats
path: root/Include/pyhash.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-01-03 20:36:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2014-01-03 20:36:49 (GMT)
commit1c0689c613b61c8944456e78c5b592e3aaa40aba (patch)
tree7f8bb895da42b257af0ca9cbc2dd13e60abf2186 /Include/pyhash.h
parenta2924cabaf115169b1629424dbe71ba5a18670da (diff)
downloadcpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.zip
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.gz
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.bz2
Issue #19526: Exclude all new API from the stable ABI.
Diffstat (limited to 'Include/pyhash.h')
-rw-r--r--Include/pyhash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pyhash.h b/Include/pyhash.h
index 83c9281..a7ca937 100644
--- a/Include/pyhash.h
+++ b/Include/pyhash.h
@@ -50,6 +50,7 @@ PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void*, Py_ssize_t);
* (*) The siphash member may not be available on 32 bit platforms without
* an unsigned int64 data type.
*/
+#ifndef Py_LIMITED_API
typedef union {
/* ensure 24 bytes */
unsigned char uc[24];
@@ -76,6 +77,7 @@ typedef union {
} expat;
} _Py_HashSecret_t;
PyAPI_DATA(_Py_HashSecret_t) _Py_HashSecret;
+#endif
#ifdef Py_DEBUG
PyAPI_DATA(int) _Py_HashSecret_Initialized;