mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
- fixed build issues with POSIX targets
This commit is contained in:
parent
282047e67c
commit
8ff51ca129
7 changed files with 11 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue