[patch] (msvc) use more modern facilities for setenv() unsetenv()
Jarosław Staniek
js at iidea.pl
Thu Mar 6 17:05:00 CET 2008
For review:
- setenv(): use secure _putenv_s() declared in msvc >= 2005 (recommended and
apparently also used by Qt4/win); return -1 when name==0;
- unsetenv(): clear the variable using setenv(name, 0, 1) as environ is
deprecated.
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
KDE Libraries for MS Windows (http://windows.kde.org)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setenv_unsetenv.patch
Url: http://mail.kde.org/pipermail/kde-windows/attachments/20080306/b9746c8d/attachment.ksh
More information about the Kde-windows
mailing list