Keep fighting msvc
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5cceaa18a4
commit
62221b9c59
|
@ -632,6 +632,11 @@ add_library(carla::zita-resampler ALIAS carla-zita-resampler)
|
|||
|
||||
set_common_target_properties(carla-zita-resampler)
|
||||
|
||||
target_compile_definitions(carla-native-plugins
|
||||
PRIVATE
|
||||
$<$<BOOL:${MSVC}>:_USE_MATH_DEFINES>
|
||||
)
|
||||
|
||||
target_include_directories(carla-zita-resampler
|
||||
PRIVATE
|
||||
../source/includes
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
@author Robin Gareus <robin@gareus.org>
|
||||
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
@ -33,6 +34,10 @@
|
|||
|
||||
#define DR_MP3_MAX_SEEK_POINTS 500
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
drmp3 mp3;
|
||||
drmp3_seek_point seekPoints[DR_MP3_MAX_SEEK_POINTS];
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
@ -36,6 +37,10 @@
|
|||
#define MINIMP3_IMPLEMENTATION
|
||||
#include "minimp3_ex.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
/* internal abstraction */
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
|
||||
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser Public License as published by
|
||||
|
@ -28,6 +29,10 @@
|
|||
|
||||
#include <sndfile.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
/* internal abstraction */
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -109,7 +109,7 @@ static uint32_t audiogain_get_parameter_count(NativePluginHandle handle)
|
|||
|
||||
static const NativeParameter* audiogain_get_parameter_info(NativePluginHandle handle, uint32_t index)
|
||||
{
|
||||
if (index > (handlePtr->isMono ? PARAM_COUNT_MONO : PARAM_COUNT_STEREO))
|
||||
if (index > (uint32_t)(handlePtr->isMono ? PARAM_COUNT_MONO : PARAM_COUNT_STEREO))
|
||||
return NULL;
|
||||
|
||||
static NativeParameter param;
|
||||
|
|
Loading…
Reference in New Issue