- fixed build issues with POSIX targets

This commit is contained in:
alexey.lysiuk 2019-10-01 12:06:24 +03:00
parent 282047e67c
commit 8ff51ca129
7 changed files with 11 additions and 1 deletions

View file

@ -24,6 +24,7 @@
#pragma once
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>

View file

@ -20,6 +20,7 @@
timidity.c
*/
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory>

View file

@ -91,7 +91,7 @@ add_library( zmusic STATIC
zmusic/zmusic.cpp
${PLAT_SOURCES}
)
target_link_libraries( zmusic )
target_link_libraries( zmusic adl dumb gme oplsynth opn timidity timidityplus wildmidi )
source_group("MIDI Devices" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mididevices/.+")

View file

@ -34,6 +34,8 @@
// HEADER FILES ------------------------------------------------------------
#include <stdlib.h>
#include "mididevice.h"
#include "adlmidi.h"

View file

@ -34,6 +34,8 @@
// HEADER FILES ------------------------------------------------------------
#include <stdlib.h>
#include "mididevice.h"
#include "timidity/timidity.h"
#include "timidity/playmidi.h"

View file

@ -8,6 +8,8 @@
#ifndef midisources_h
#define midisources_h
#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <functional>
#include <vector>

View file

@ -196,6 +196,8 @@ MusInfo* CDDA_OpenSong(MusicIO::FileInterface* reader)
#else
#include <stdexcept>
MusInfo* CD_OpenSong(int track, int id)
{
throw std::runtime_error("CD Audio playback not supported");