Add dummy cdrom ioctl module for other OSes

This commit is contained in:
Greg V 2018-05-18 02:51:33 +03:00
commit f002abe258
3 changed files with 36 additions and 1 deletions

View file

@ -97,6 +97,10 @@ if OS_LINUX
pcem_SOURCES += cdrom-ioctl-linux.c wx-sdl2-display.c
endif
if OS_OTHER
pcem_SOURCES += cdrom-ioctl-dummy.c wx-sdl2-display.c
endif
if OS_MACOSX
pcem_SOURCES += cdrom-ioctl-osx.c wx-sdl2-display.c
pcem_CFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP

20
src/cdrom-ioctl-dummy.c Normal file
View file

@ -0,0 +1,20 @@
/*Dummy CD-ROM support for other OSes*/
#include <stdint.h>
int old_cdrom_drive;
void ioctl_audio_callback(int16_t *output, int len) { }
void ioctl_audio_stop() { }
void ioctl_reset() { }
void ioctl_set_drive(char d) { }
int ioctl_open(char d)
{
return 0;
}
void ioctl_close(void) { }