From: <sag...@us...> - 2014-12-11 17:48:58
|
Revision: 4641 http://sourceforge.net/p/modplug/code/4641 Author: saga-games Date: 2014-12-11 17:48:49 +0000 (Thu, 11 Dec 2014) Log Message: ----------- [Fix] VS2008 doesn't have _ttof. Modified Paths: -------------- trunk/OpenMPT/mptrack/View_gen.cpp Modified: trunk/OpenMPT/mptrack/View_gen.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_gen.cpp 2014-12-07 01:53:57 UTC (rev 4640) +++ trunk/OpenMPT/mptrack/View_gen.cpp 2014-12-11 17:48:49 UTC (rev 4641) @@ -1060,7 +1060,12 @@ GetDlgItemText(IDC_EDIT14, s, CountOf(s)); if ((m_nCurrentParam < nParams) && (s[0])) { - float fValue = (float)_ttof(s); + // VS2008 doesn't have _ttof +#ifdef UNICODE + float fValue = (float)_wtof(s); +#else + float fValue = (float)atof(s); +#endif 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. |