Browse Source

Even more msvc compat

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
5cceaa18a4
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 12 additions and 4 deletions
  1. +2
    -0
      cmake/CMakeLists.txt
  2. +8
    -1
      source/modules/audio_decoder/ad.h
  3. +0
    -2
      source/modules/audio_decoder/ad_dr_mp3.c
  4. +2
    -1
      source/modules/audio_decoder/ad_plugin.h

+ 2
- 0
cmake/CMakeLists.txt View File

@@ -881,6 +881,8 @@ target_link_libraries(carla-utils
PkgConfig::FLUIDSYNTH
PkgConfig::X11
${CARLA_PTHREADS}
PUBLIC
$<$<BOOL:${WIN32}>:winmm>
)

target_sources(carla-utils


+ 8
- 1
source/modules/audio_decoder/ad.h View File

@@ -23,9 +23,16 @@
#ifndef __AD_H__
#define __AD_H__

#include <unistd.h>
#include <stddef.h>
#include <stdint.h>

#ifdef _MSC_VER
#include <basetsd.h>
typedef SSIZE_T ssize_t;
#else
#include <sys/types.h>
#endif

struct adinfo {
unsigned int sample_rate;
unsigned int channels;


+ 0
- 2
source/modules/audio_decoder/ad_dr_mp3.c View File

@@ -20,8 +20,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <math.h>

#include "ad_plugin.h"


+ 2
- 1
source/modules/audio_decoder/ad_plugin.h View File

@@ -16,9 +16,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

*/

#ifndef __AD_PLUGIN_H__
#define __AD_PLUGIN_H__
#include <stdint.h>
#include "ad.h"

#define dbg(A, B, ...) ad_debug_printf(__func__, A, B, ##__VA_ARGS__)


Loading…
Cancel
Save