[issue1706] Force WINVER 0x0500 (Windows 2000)

Christian Heimes report at bugs.python.org
Sat Feb 9 19:17:45 CET 2008


Christian Heimes added the comment:

Martin v. Löwis wrote:
> As you found, the original issue reported here could be closed:
> WINVER *is* already defined in pyconfig.h. I'm still -1 for defining
> it generally. So to define WINVER for the extension modules that
> are part of the core, it would be best to define it in pyd.vsprops,
> and pyd_d.vsprops, not in a header file.

I require WINVER set to Win2k for patch #1763
(os.path.get_shellfolders()). The necessary API methods aren't declared
for the standard WINVER.

What do you think about a new macro Py_BUILD_CORE_MODULE for the pyd
property file?

#if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE)
#define NTDDI_VERSION NTDDI_WIN2KSP4
#define WINVER 0x0500
#define _WIN32_WINNT WINVER
#endif

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1706>
__________________________________


More information about the Python-bugs-list mailing list