summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_hamt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_hamt.h')
-rw-r--r--Include/internal/pycore_hamt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_hamt.h b/Include/internal/pycore_hamt.h
index 29ad28b..8b2ce1f 100644
--- a/Include/internal/pycore_hamt.h
+++ b/Include/internal/pycore_hamt.h
@@ -1,6 +1,9 @@
#ifndef Py_INTERNAL_HAMT_H
#define Py_INTERNAL_HAMT_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
#define _Py_HAMT_MAX_TREE_DEPTH 7