VSTHost: Fix the build on GCC 7.
rename round -> vstround.
This commit is contained in:
@@ -219,7 +219,7 @@ VSTParameter::SetValue(float value)
|
||||
|
||||
if (fType == VST_PARAM_DROPLIST) {
|
||||
//take value by index
|
||||
int index = (int)round(value);
|
||||
int index = (int)vstround(value);
|
||||
if (index >= 0 && index < fDropList.CountItems()) {
|
||||
DropListValue *item = (DropListValue*)fDropList.ItemAt(index);
|
||||
value = item->Value;
|
||||
|
||||
@@ -87,7 +87,7 @@ struct VSTEffect
|
||||
//typedefs
|
||||
typedef int32 (*audioMasterCallback)(VSTEffect*, int32, int32, int32, void*, float);
|
||||
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
|
||||
struct DropListValue {
|
||||
|
||||
Reference in New Issue
Block a user