Take out libchdr include from interface_stream.h

This commit is contained in:
twinaphex 2017-09-22 04:47:58 +02:00
parent 4bbaa65361
commit 6141761e63
2 changed files with 5 additions and 3 deletions

View File

@ -30,8 +30,6 @@
#include <retro_common_api.h> #include <retro_common_api.h>
#include <boolean.h> #include <boolean.h>
#include <libchdr/chd.h>
RETRO_BEGIN_DECLS RETRO_BEGIN_DECLS
enum intfstream_type enum intfstream_type
@ -56,7 +54,7 @@ typedef struct intfstream_info
} memory; } memory;
struct struct
{ {
chd_file *handle; void *handle;
int32_t track; int32_t track;
} chd; } chd;
enum intfstream_type type; enum intfstream_type type;

View File

@ -25,7 +25,9 @@
#include <streams/interface_stream.h> #include <streams/interface_stream.h>
#include <streams/file_stream.h> #include <streams/file_stream.h>
#include <streams/memory_stream.h> #include <streams/memory_stream.h>
#ifdef HAVE_CHD
#include <streams/chd_stream.h> #include <streams/chd_stream.h>
#endif
struct intfstream_internal struct intfstream_internal
{ {
@ -46,11 +48,13 @@ struct intfstream_internal
memstream_t *fp; memstream_t *fp;
bool writable; bool writable;
} memory; } memory;
#ifdef HAVE_CHD
struct struct
{ {
int32_t track; int32_t track;
chdstream_t *fp; chdstream_t *fp;
} chd; } chd;
#endif
}; };
bool intfstream_resize(intfstream_internal_t *intf, intfstream_info_t *info) bool intfstream_resize(intfstream_internal_t *intf, intfstream_info_t *info)