Message239112
> -#if defined(HAVE_STAT) && !defined(MS_WINDOWS)
> This doesn't look correct. An equivalent replacement is
Oh, I missed the "!". Only _Py_wstat() uses this test. Windows has _wstat(), so _Py_wstat() could use it.
I added deliberately "!defined(MS_WINDOWS)" because _Py_wstat() is only used in Modules/getpath.c and this file is not compiled on Windows.
Instead of modifying _Py_wstat(), I moved it back to Modules/getpath.c. There is no need to overengineer this function only called 3 times in getpath.c. |
|
Date |
User |
Action |
Args |
2015-03-24 11:23:35 | vstinner | set | recipients:
+ vstinner, pitrou, neologix, python-dev, serhiy.storchaka |
2015-03-24 11:23:35 | vstinner | set | messageid: <1427196215.42.0.543109063354.issue23753@psf.upfronthosting.co.za> |
2015-03-24 11:23:35 | vstinner | link | issue23753 messages |
2015-03-24 11:23:35 | vstinner | create | |
|