summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-22 10:22:29 +0200
committerChristian Heimes <christian@cheimes.de>2013-10-22 10:22:29 +0200
commit8717476dc7451dce7e81cacc05650f1d7fbe793c (patch)
treeee8abefb43ef1860587339e3779b72bf46a4c692 /Python/pythonrun.c
parentb10c872cdb1d5c78c7e53dafe86dbedfb5bed54c (diff)
downloadcpython-8717476dc7451dce7e81cacc05650f1d7fbe793c.tar.gz
Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ee277b67f2..832df535f8 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -96,6 +96,10 @@ int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */
PyThreadState *_Py_Finalizing = NULL;
+/* Hack to force loading of object files */
+int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \
+ PyOS_mystrnicmp; /* Python/pystrcmp.o */
+
/* PyModule_GetWarningsModule is no longer necessary as of 2.6
since _warnings is builtin. This API should not be used. */
PyObject *