Skip to content

Commit

Permalink
Export "octave_quit_c" with C name mangling outside namespace (bug #6…
Browse files Browse the repository at this point in the history
…4897).

* liboctave/util/quit.cc (octave_quit_c): Move function definition out of
"octave" namespace. Add visibility flags. Export function with C name mangling.
  • Loading branch information
mmuetzel committed Nov 21, 2023
1 parent a12f782 commit 6cde7d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions liboctave/util/quit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ void execution_exception::display (std::ostream& os) const
}
}

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 ()
{
Expand Down

0 comments on commit 6cde7d6

Please sign in to comment.