mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
libxmp-lite: Changes to build as C++: Apparently an extern declaration must be present for the compiler to expose the symbols of struct objects.
git-svn-id: https://svn.eduke32.com/eduke32@6163 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d77d1cff29
commit
fc93eb1fe6
6 changed files with 6 additions and 1 deletions
|
@ -34,6 +34,7 @@ extern const struct format_loader libxmp_loader_s3m;
|
||||||
|
|
||||||
extern const struct pw_format *const pw_format[];
|
extern const struct pw_format *const pw_format[];
|
||||||
|
|
||||||
|
extern const struct format_loader *const format_loader[];
|
||||||
const struct format_loader *const format_loader[5] = {
|
const struct format_loader *const format_loader[5] = {
|
||||||
&libxmp_loader_xm,
|
&libxmp_loader_xm,
|
||||||
&libxmp_loader_mod,
|
&libxmp_loader_mod,
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
static int it_test(HIO_HANDLE *, char *, const int);
|
static int it_test(HIO_HANDLE *, char *, const int);
|
||||||
static int it_load(struct module_data *, HIO_HANDLE *, const int);
|
static int it_load(struct module_data *, HIO_HANDLE *, const int);
|
||||||
|
|
||||||
|
extern const struct format_loader libxmp_loader_it;
|
||||||
const struct format_loader libxmp_loader_it = {
|
const struct format_loader libxmp_loader_it = {
|
||||||
"Impulse Tracker",
|
"Impulse Tracker",
|
||||||
it_test,
|
it_test,
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern struct format_loader *format_loader[];
|
extern const struct format_loader *const format_loader[];
|
||||||
|
|
||||||
void libxmp_load_prologue(struct context_data *);
|
void libxmp_load_prologue(struct context_data *);
|
||||||
void libxmp_load_epilogue(struct context_data *);
|
void libxmp_load_epilogue(struct context_data *);
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
static int mod_test(HIO_HANDLE *, char *, const int);
|
static int mod_test(HIO_HANDLE *, char *, const int);
|
||||||
static int mod_load(struct module_data *, HIO_HANDLE *, const int);
|
static int mod_load(struct module_data *, HIO_HANDLE *, const int);
|
||||||
|
|
||||||
|
extern const struct format_loader libxmp_loader_mod;
|
||||||
const struct format_loader libxmp_loader_mod = {
|
const struct format_loader libxmp_loader_mod = {
|
||||||
"Protracker",
|
"Protracker",
|
||||||
mod_test,
|
mod_test,
|
||||||
|
|
|
@ -82,6 +82,7 @@
|
||||||
static int s3m_test(HIO_HANDLE *, char *, const int);
|
static int s3m_test(HIO_HANDLE *, char *, const int);
|
||||||
static int s3m_load(struct module_data *, HIO_HANDLE *, const int);
|
static int s3m_load(struct module_data *, HIO_HANDLE *, const int);
|
||||||
|
|
||||||
|
extern const struct format_loader libxmp_loader_s3m;
|
||||||
const struct format_loader libxmp_loader_s3m = {
|
const struct format_loader libxmp_loader_s3m = {
|
||||||
"Scream Tracker 3",
|
"Scream Tracker 3",
|
||||||
s3m_test,
|
s3m_test,
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
static int xm_test(HIO_HANDLE *, char *, const int);
|
static int xm_test(HIO_HANDLE *, char *, const int);
|
||||||
static int xm_load(struct module_data *, HIO_HANDLE *, const int);
|
static int xm_load(struct module_data *, HIO_HANDLE *, const int);
|
||||||
|
|
||||||
|
extern const struct format_loader libxmp_loader_xm;
|
||||||
const struct format_loader libxmp_loader_xm = {
|
const struct format_loader libxmp_loader_xm = {
|
||||||
"Fast Tracker II",
|
"Fast Tracker II",
|
||||||
xm_test,
|
xm_test,
|
||||||
|
|
Loading…
Reference in a new issue