]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
prowizard: use C++ linkage for host callbacks
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 4 Jun 2026 03:36:51 +0000 (20:36 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 4 Jun 2026 05:33:24 +0000 (22:33 -0700)
Pro-Wizard is built as C++ on Windows, so its host callback
declarations should use normal C++ linkage.

Drop the C-linkage guard around those callback declarations. Unix
builds should match Windows by compiling Pro-Wizard as C++ instead of
changing callback linkage.

prowizard/include/extern.h

index 83f894871c07ddae39a3c226c1865cd20e50c5ca..593d3b42dea28a41353f1d493ea126032d6500cf 100644 (file)
@@ -356,12 +356,6 @@ 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