From: <man...@us...> - 2014-12-12 10:52:06
|
Revision: 4644 http://sourceforge.net/p/modplug/code/4644 Author: manxorist Date: 2014-12-12 10:51:53 +0000 (Fri, 12 Dec 2014) Log Message: ----------- [Ref] VS2008 does not provide _ttof. However, it does provide _tstof which does exactly the same thing. Modified Paths: -------------- trunk/OpenMPT/mptrack/View_gen.cpp Modified: trunk/OpenMPT/mptrack/View_gen.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_gen.cpp 2014-12-11 22:47:28 UTC (rev 4643) +++ trunk/OpenMPT/mptrack/View_gen.cpp 2014-12-12 10:51:53 UTC (rev 4644) @@ -1060,12 +1060,7 @@ GetDlgItemText(IDC_EDIT14, s, CountOf(s)); if ((m_nCurrentParam < nParams) && (s[0])) { - // VS2008 doesn't have _ttof -#ifdef UNICODE - float fValue = (float)_wtof(s); -#else - float fValue = (float)atof(s); -#endif + float fValue = (float)_tstof(s); pVstPlugin->SetParameter(m_nCurrentParam, fValue); OnParamChanged(); SetPluginModified(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |