Jeffrey Armstrong added the comment:

I've included a revised patch that is far simpler than the others I've 
proposed.  In this example, the preprocess checks for MSVC or 
Borland/Embarcadero and, if found, uses three-argument wcstok_s().  If neither 
is detected, it checks for MinGW and, if found, defaults to old two-argument 
wcstok().  Otherwise, it defaults to three-argument wcstok().

The default in this case effectively encompasses all other OSes where 
POSIX-like wcstok() is available.  Additionally, it also allows this default 
for Open Watcom on Windows or any other theoretically possible compilers on 
Windows that may provide this more common wcstok() syntax.

----------
Added file: http://bugs.python.org/file34063/wcstok.default.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20596>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to