summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorErik Bray <erik.m.bray@gmail.com>2017-10-27 11:46:03 +0200
committerNick Coghlan <ncoghlan@gmail.com>2017-10-27 19:46:03 +1000
commit031c4bfadb69feeda82ce886d6b0cadc638d2e1e (patch)
treebf96902f4e6b6de17f916c3763c2dcf8ce0391c0 /Include
parent2f3d6993d7ca4a4d218e0d63b126c94bc00a03b8 (diff)
downloadcpython-git-031c4bfadb69feeda82ce886d6b0cadc638d2e1e.tar.gz
bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h (GH-4134)
Only declaring these as interns inside the CLI's main C module caused build problems on some platforms (notably Cygwin), so this switches them to a regular underscore prefixed "private" C API declaration.
Diffstat (limited to 'Include')
-rw-r--r--Include/pylifecycle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h
index e1737b5972..8bbce7fd61 100644
--- a/Include/pylifecycle.h
+++ b/Include/pylifecycle.h
@@ -133,6 +133,12 @@ PyAPI_FUNC(int) _PyOS_URandom(void *buffer, Py_ssize_t size);
PyAPI_FUNC(int) _PyOS_URandomNonblock(void *buffer, Py_ssize_t size);
#endif /* !Py_LIMITED_API */
+/* Legacy locale support */
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(void) _Py_CoerceLegacyLocale(void);
+PyAPI_FUNC(int) _Py_LegacyLocaleDetected(void);
+#endif
+
#ifdef __cplusplus
}
#endif