Skip to content
Permalink
Browse files

- fixed build issues with POSIX targets

  • Loading branch information...
alexey-lysiuk committed Oct 1, 2019
1 parent 282047e commit 8ff51ca1296a26d70dc7aef4a7e19ebe189c18cb
@@ -24,6 +24,7 @@

#pragma once
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>

@@ -20,6 +20,7 @@
timidity.c
*/

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory>
@@ -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/.+")
@@ -34,6 +34,8 @@

// HEADER FILES ------------------------------------------------------------

#include <stdlib.h>

#include "mididevice.h"
#include "adlmidi.h"

@@ -34,6 +34,8 @@

// HEADER FILES ------------------------------------------------------------

#include <stdlib.h>

#include "mididevice.h"
#include "timidity/timidity.h"
#include "timidity/playmidi.h"
@@ -8,6 +8,8 @@
#ifndef midisources_h
#define midisources_h

#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <functional>
#include <vector>
@@ -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");

0 comments on commit 8ff51ca

Please sign in to comment.
You can’t perform that action at this time.