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:
hendricks266 2017-06-09 06:40:07 +00:00
parent d77d1cff29
commit fc93eb1fe6
6 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,7 @@ extern const struct format_loader libxmp_loader_s3m;
extern const struct pw_format *const pw_format[];
extern const struct format_loader *const format_loader[];
const struct format_loader *const format_loader[5] = {
&libxmp_loader_xm,
&libxmp_loader_mod,

View File

@ -35,6 +35,7 @@
static int it_test(HIO_HANDLE *, char *, 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 = {
"Impulse Tracker",
it_test,

View File

@ -51,7 +51,7 @@
#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_epilogue(struct context_data *);

View File

@ -35,6 +35,7 @@
static int mod_test(HIO_HANDLE *, char *, 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 = {
"Protracker",
mod_test,

View File

@ -82,6 +82,7 @@
static int s3m_test(HIO_HANDLE *, char *, 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 = {
"Scream Tracker 3",
s3m_test,

View File

@ -39,6 +39,7 @@
static int xm_test(HIO_HANDLE *, char *, 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 = {
"Fast Tracker II",
xm_test,