summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_accu.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_accu.h')
-rw-r--r--Include/internal/pycore_accu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_accu.h b/Include/internal/pycore_accu.h
index ab1aad2..4350db5 100644
--- a/Include/internal/pycore_accu.h
+++ b/Include/internal/pycore_accu.h
@@ -9,6 +9,10 @@ extern "C" {
*** Its definition may be changed or removed at any moment.
***/
+#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
+# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
+#endif
+
/*
* A two-level accumulator of unicode objects that avoids both the overhead
* of keeping a huge number of small separate objects, and the quadratic