From: Stefan Reinauer Date: Sun, 31 May 2026 02:57:32 +0000 (-0700) Subject: prowizard: use C linkage for ripper hooks X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7e8225d2669511cda8d77dcebe7426c002f7a162;p=francis%2Fwinuae.git prowizard: use C linkage for ripper hooks The ripper entry points are consumed from C++ code. Wrap the public declarations and the compiled search entry point in C linkage so names match across C and C++ builds. --- diff --git a/prowizard/include/extern.h b/prowizard/include/extern.h index 5c78ae2b..5f424f63 100644 --- a/prowizard/include/extern.h +++ b/prowizard/include/extern.h @@ -354,7 +354,12 @@ extern char Extensions[_KNOWN_FORMATS+1][33]; extern Uchar CONVERT; extern Uchar Amiga_EXE_Header; +#ifdef __cplusplus +extern "C" { +#endif extern void pw_write_log (const char *, ...); extern FILE *moduleripper2_fopen (const char *name, const char *mode, const char *aid, int addr, int size); extern FILE *moduleripper_fopen (const char *aname, const char *amode); - +#ifdef __cplusplus +} +#endif diff --git a/prowizard/prowiz.c b/prowizard/prowiz.c index e889b7c5..f2dddcc1 100644 --- a/prowizard/prowiz.c +++ b/prowizard/prowiz.c @@ -13,6 +13,9 @@ #if 0 int main ( int ac , char **av ) #else +#ifdef __cplusplus +extern "C" +#endif int prowizard_search (Uchar *in_data_p, int PW_in_size_p) #endif {