Even more msvc compat
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
944460ac74
commit
5cceaa18a4
|
@ -881,6 +881,8 @@ target_link_libraries(carla-utils
|
|||
PkgConfig::FLUIDSYNTH
|
||||
PkgConfig::X11
|
||||
${CARLA_PTHREADS}
|
||||
PUBLIC
|
||||
$<$<BOOL:${WIN32}>:winmm>
|
||||
)
|
||||
|
||||
target_sources(carla-utils
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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…
Reference in New Issue