mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +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
|
#pragma once
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
timidity.c
|
timidity.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
|
@ -91,7 +91,7 @@ add_library( zmusic STATIC
|
||||||
zmusic/zmusic.cpp
|
zmusic/zmusic.cpp
|
||||||
${PLAT_SOURCES}
|
${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/.+")
|
source_group("MIDI Devices" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mididevices/.+")
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
|
|
||||||
// HEADER FILES ------------------------------------------------------------
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "mididevice.h"
|
#include "mididevice.h"
|
||||||
#include "adlmidi.h"
|
#include "adlmidi.h"
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
|
|
||||||
// HEADER FILES ------------------------------------------------------------
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "mididevice.h"
|
#include "mididevice.h"
|
||||||
#include "timidity/timidity.h"
|
#include "timidity/timidity.h"
|
||||||
#include "timidity/playmidi.h"
|
#include "timidity/playmidi.h"
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#ifndef midisources_h
|
#ifndef midisources_h
|
||||||
#define midisources_h
|
#define midisources_h
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -196,6 +196,8 @@ MusInfo* CDDA_OpenSong(MusicIO::FileInterface* reader)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
MusInfo* CD_OpenSong(int track, int id)
|
MusInfo* CD_OpenSong(int track, int id)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("CD Audio playback not supported");
|
throw std::runtime_error("CD Audio playback not supported");
|
||||||
|
|
Loading…
Reference in a new issue