summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_hash.h')
-rw-r--r--Include/internal/pycore_hash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_hash.h b/Include/internal/pycore_hash.h
index e14b80a..babbc95 100644
--- a/Include/internal/pycore_hash.h
+++ b/Include/internal/pycore_hash.h
@@ -1,6 +1,10 @@
#ifndef Py_INTERNAL_HASH_H
#define Py_INTERNAL_HASH_H
+#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
+# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
+#endif
+
uint64_t _Py_KeyedHash(uint64_t, const char *, Py_ssize_t);
#endif