Even more msvc compat

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-05-25 23:01:05 +02:00
parent 944460ac74
commit 5cceaa18a4
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 12 additions and 4 deletions

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

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;

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"

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__)