changeset 32478:11c522c30725

Export "octave_quit_c" with C name mangling outside namespace (bug #64897). * liboctave/util/quit.cc (octave_quit_c): Move function definition out of "octave" namespace. Add visibility flags. Export function with C name mangling.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 21 Nov 2023 18:09:29 +0100
parents e6d339b9309d
children 53694f883c9c 17ed7bd62ae6
files liboctave/util/quit.cc
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/util/quit.cc	Mon Nov 20 18:41:06 2023 +0100
+++ b/liboctave/util/quit.cc	Tue Nov 21 18:09:29 2023 +0100
@@ -96,13 +96,14 @@
     }
 }
 
-void octave_quit_c (void)
+OCTAVE_END_NAMESPACE(octave)
+
+extern "C" OCTAVE_API void
+octave_quit_c (void)
 {
   octave_quit ();
 }
 
-OCTAVE_END_NAMESPACE(octave)
-
 void
 octave_handle_signal ()
 {