diff --git a/source/libxmp-lite/src/format.c b/source/libxmp-lite/src/format.c index cc3aa2d6c..def12d5b5 100644 --- a/source/libxmp-lite/src/format.c +++ b/source/libxmp-lite/src/format.c @@ -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, diff --git a/source/libxmp-lite/src/it_load.c b/source/libxmp-lite/src/it_load.c index 746c3909b..9877219ce 100644 --- a/source/libxmp-lite/src/it_load.c +++ b/source/libxmp-lite/src/it_load.c @@ -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, diff --git a/source/libxmp-lite/src/load.c b/source/libxmp-lite/src/load.c index 6f7bf2db9..3b6fc8619 100644 --- a/source/libxmp-lite/src/load.c +++ b/source/libxmp-lite/src/load.c @@ -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 *); diff --git a/source/libxmp-lite/src/mod_load.c b/source/libxmp-lite/src/mod_load.c index 9ca541351..c9fcf9a5b 100644 --- a/source/libxmp-lite/src/mod_load.c +++ b/source/libxmp-lite/src/mod_load.c @@ -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, diff --git a/source/libxmp-lite/src/s3m_load.c b/source/libxmp-lite/src/s3m_load.c index ad2139c2a..66a580dbd 100644 --- a/source/libxmp-lite/src/s3m_load.c +++ b/source/libxmp-lite/src/s3m_load.c @@ -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, diff --git a/source/libxmp-lite/src/xm_load.c b/source/libxmp-lite/src/xm_load.c index 56085516f..7ccbc6ac8 100644 --- a/source/libxmp-lite/src/xm_load.c +++ b/source/libxmp-lite/src/xm_load.c @@ -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,