summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-22 10:23:12 +0200
committerChristian Heimes <christian@cheimes.de>2013-10-22 10:23:12 +0200
commit175a1f0d8da868b8e5633dbbaf143cb65fd3d105 (patch)
tree1d01ad945538e4f2439a54dc3dd19d0fca55af1f /Python/pythonrun.c
parent3f11fd92b1d31887429750feb8900182ee5e1d6c (diff)
parent8717476dc7451dce7e81cacc05650f1d7fbe793c (diff)
downloadcpython-175a1f0d8da868b8e5633dbbaf143cb65fd3d105.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 b963ce1132..15a48f9947 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -116,6 +116,10 @@ int Py_IsolatedFlag = 0; /* for -I, isolate from user's env */
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 *