mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension modules for incompatibility (GH-101615)
This commit is contained in:
parent
eb49d32b9a
commit
3a88de7a0a
2 changed files with 6 additions and 4 deletions
|
@ -125,14 +125,15 @@ static char *GetPythonImport (HINSTANCE hModule)
|
|||
!strncmp(import_name,"python",6)) {
|
||||
char *pch;
|
||||
|
||||
#ifndef _DEBUG
|
||||
/* In a release version, don't claim that python3.dll is
|
||||
a Python DLL. */
|
||||
/* Don't claim that python3.dll is a Python DLL. */
|
||||
#ifdef _DEBUG
|
||||
if (strcmp(import_name, "python3_d.dll") == 0) {
|
||||
#else
|
||||
if (strcmp(import_name, "python3.dll") == 0) {
|
||||
#endif
|
||||
import_data += 20;
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Ensure python prefix is followed only
|
||||
by numbers to the end of the basename */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue