0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

obs-vst: Remove min and max macro workaround

This commit is contained in:
Norihiro Kamae 2024-08-02 15:19:24 +09:00 committed by Lain
parent 7b2a6351b0
commit edf753b31e
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ void VSTPlugin::createChannelBuffers(size_t count)
cleanupChannelBuffers();
int blocksize = BLOCK_SIZE;
numChannels = (std::max)((size_t)0, count);
numChannels = std::max((size_t)0, count);
if (numChannels > 0) {
inputs = (float **)bmalloc(sizeof(float *) * numChannels);
@ -170,8 +170,7 @@ void VSTPlugin::loadEffectFromPath(const std::string &path)
return;
}
int maxchans =
(std::max)(effect->numInputs, effect->numOutputs);
int maxchans = std::max(effect->numInputs, effect->numOutputs);
// sanity check
if (maxchans < 0 || maxchans > 256) {
blog(LOG_WARNING,

View File

@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QWidget>
#if defined(_WIN32)
#define NOMINMAX
#include <QWindow>
#include <Windows.h>
#elif defined(__linux__)