[education/rkward] rkward/rbackend: Fix compilation on Windows
Thomas Friedrichsmeier
null at kde.org
Fri May 10 17:04:24 BST 2024
Git commit 39ed7c0acca483a413a17a8052b03628ba3fb47d by Thomas Friedrichsmeier.
Committed on 09/05/2024 at 21:18.
Pushed by tfry into branch 'master'.
Fix compilation on Windows
M +4 -0 rkward/rbackend/rkrbackend_dlopen.cpp
https://invent.kde.org/education/rkward/-/commit/39ed7c0acca483a413a17a8052b03628ba3fb47d
diff --git a/rkward/rbackend/rkrbackend_dlopen.cpp b/rkward/rbackend/rkrbackend_dlopen.cpp
index c135dd1ef..b177ee914 100644
--- a/rkward/rbackend/rkrbackend_dlopen.cpp
+++ b/rkward/rbackend/rkrbackend_dlopen.cpp
@@ -100,7 +100,11 @@ int main(int argc, char *argv[]) {
int (*do_main) (int, char**, void*, void* (*)(void*, const char*));
do_main = (decltype(do_main)) resolve_symb(rkb_dllinfo, "do_main");
if (!do_main) {
+#if defined(Win32)
+ fprintf(stderr, "Failure to resolve do_main()\n");
+#else
fprintf(stderr, "Failure to resolve do_main(): %s\n", dlerror());
+#endif
exit(99);
}
return do_main(argc, argv, r_dllinfo, resolve_symb);
More information about the rkward-tracker
mailing list