mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
Slightly different Windows ifdefs
This commit is contained in:
parent
919c576254
commit
6f489d989d
4 changed files with 8 additions and 9 deletions
|
@ -415,7 +415,7 @@ find_module(name, path, buf, buflen, p_fp)
|
|||
struct filedescr *fdp;
|
||||
FILE *fp = NULL;
|
||||
|
||||
#ifdef NT
|
||||
#ifdef PYTHONWIN
|
||||
if ((fp=PyWin_FindRegisteredModule(name, &fdp, buf, buflen))!=NULL) {
|
||||
*p_fp = fp;
|
||||
return fdp;
|
||||
|
@ -463,12 +463,11 @@ find_module(name, path, buf, buflen, p_fp)
|
|||
buf[len++] = ch;
|
||||
}
|
||||
else /* Not in dos_8x3, use the full name */
|
||||
#else
|
||||
#endif
|
||||
{
|
||||
strcpy(buf+len, name);
|
||||
len += namelen;
|
||||
}
|
||||
#endif
|
||||
for (fdp = import_filetab; fdp->suffix != NULL; fdp++) {
|
||||
strcpy(buf+len, fdp->suffix);
|
||||
if (verbose > 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue