summaryrefslogtreecommitdiffstats
path: root/Modules/_xxtestfuzz
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-22 13:49:37 (GMT)
committerGitHub <noreply@github.com>2023-07-22 13:49:37 (GMT)
commit89f987544860d1360e6232b6f52b8ced92a4d690 (patch)
tree907da00214a5c77ab33084321a66cc936798642f /Modules/_xxtestfuzz
parent756add081ead8fa9aeb11ac178e581ba2450f296 (diff)
downloadcpython-89f987544860d1360e6232b6f52b8ced92a4d690.zip
cpython-89f987544860d1360e6232b6f52b8ced92a4d690.tar.gz
cpython-89f987544860d1360e6232b6f52b8ced92a4d690.tar.bz2
gh-106320: Move private _PyHash API to the internal C API (#107026)
* No longer export most private _PyHash symbols, only export the ones which are needed by shared extensions. * Modules/_xxtestfuzz/fuzzer.c now uses the internal C API.
Diffstat (limited to 'Modules/_xxtestfuzz')
-rw-r--r--Modules/_xxtestfuzz/fuzzer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_xxtestfuzz/fuzzer.c b/Modules/_xxtestfuzz/fuzzer.c
index 37d4028..54f8a42 100644
--- a/Modules/_xxtestfuzz/fuzzer.c
+++ b/Modules/_xxtestfuzz/fuzzer.c
@@ -10,7 +10,12 @@
See the source code for LLVMFuzzerTestOneInput for details. */
+#ifndef Py_BUILD_CORE
+# define Py_BUILD_CORE 1
+#endif
+
#include <Python.h>
+#include "pycore_pyhash.h" // _Py_HashBytes()
#include <stdlib.h>
#include <inttypes.h>