summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/cjkcodecs.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-03 08:23:43 (GMT)
committerGitHub <noreply@github.com>2023-07-03 08:23:43 (GMT)
commit5ccbbe5bb9a659fa8f2fe551428c84cc14015f44 (patch)
treedda828881a98a880d128b97c1072fc08b7b262b1 /Modules/cjkcodecs/cjkcodecs.h
parentd65b783b6966d233467a48ef633afb4aff9d5df8 (diff)
downloadcpython-5ccbbe5bb9a659fa8f2fe551428c84cc14015f44.zip
cpython-5ccbbe5bb9a659fa8f2fe551428c84cc14015f44.tar.gz
cpython-5ccbbe5bb9a659fa8f2fe551428c84cc14015f44.tar.bz2
gh-106320: Move _PyUnicodeWriter to the internal C API (#106342)
Move also _PyUnicode_FormatAdvancedWriter(). CJK codecs and multibytecodec.c now define the Py_BUILD_CORE_MODULE macro.
Diffstat (limited to 'Modules/cjkcodecs/cjkcodecs.h')
-rw-r--r--Modules/cjkcodecs/cjkcodecs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h
index 48cdcfb..97290aa 100644
--- a/Modules/cjkcodecs/cjkcodecs.h
+++ b/Modules/cjkcodecs/cjkcodecs.h
@@ -7,6 +7,10 @@
#ifndef _CJKCODECS_H_
#define _CJKCODECS_H_
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "Python.h"
#include "multibytecodec.h"