VSTHost: Fix the build on GCC 7.

rename round -> vstround.
This commit is contained in:
Augustin Cavalier
2018-05-21 17:57:50 -04:00
parent 20aff1c8ca
commit 66e852769e
2 changed files with 566 additions and 566 deletions
@@ -219,7 +219,7 @@ VSTParameter::SetValue(float value)
if (fType == VST_PARAM_DROPLIST) { if (fType == VST_PARAM_DROPLIST) {
//take value by index //take value by index
int index = (int)round(value); int index = (int)vstround(value);
if (index >= 0 && index < fDropList.CountItems()) { if (index >= 0 && index < fDropList.CountItems()) {
DropListValue *item = (DropListValue*)fDropList.ItemAt(index); DropListValue *item = (DropListValue*)fDropList.ItemAt(index);
value = item->Value; value = item->Value;
@@ -87,7 +87,7 @@ struct VSTEffect
//typedefs //typedefs
typedef int32 (*audioMasterCallback)(VSTEffect*, int32, int32, int32, void*, float); typedef int32 (*audioMasterCallback)(VSTEffect*, int32, int32, int32, void*, float);
typedef VSTEffect* (*VSTEntryProc)(audioMasterCallback audioMaster); typedef VSTEffect* (*VSTEntryProc)(audioMasterCallback audioMaster);
inline float round(float x) {return ceil(x-0.5);} inline float vstround(float x) {return ceil(x-0.5);}
//structure for droplist parameters //structure for droplist parameters
struct DropListValue { struct DropListValue {