From b7e7aa31c02992bc50e1033680408fc1e51a648e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Mon, 18 Nov 2024 18:22:11 +0100 Subject: [PATCH] Add visibility attributes for exception handlers (bug #66451). * libinterp/parse-tree/oct-parse.yy (octave::interrupt_exception), liboctave/util/quit.h (octave::interrupt_exception): Add visibility attributes to class definitions. --- libinterp/parse-tree/oct-parse.yy | 2 +- liboctave/util/quit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libinterp/parse-tree/oct-parse.yy b/libinterp/parse-tree/oct-parse.yy index a958879f87..75a9b6fb9a 100644 --- a/libinterp/parse-tree/oct-parse.yy +++ b/libinterp/parse-tree/oct-parse.yy @@ -2205,7 +2205,7 @@ yyerror (octave::base_parser& parser, const char *s) OCTAVE_BEGIN_NAMESPACE(octave) -class parse_exception : public std::runtime_error +class OCTINTERP_EXCEPTION_API parse_exception : public std::runtime_error { public: diff --git a/liboctave/util/quit.h b/liboctave/util/quit.h index 0e12ed28ab..a07b21ce19 100644 --- a/liboctave/util/quit.h +++ b/liboctave/util/quit.h @@ -182,7 +182,7 @@ class OCTAVE_EXCEPTION_API exit_exception : public std::exception bool m_safe_to_return; }; -class interrupt_exception : public std::exception +class OCTAVE_EXCEPTION_API interrupt_exception : public std::exception { public: