Mercurial > octave
changeset 30021:973142706c0f
* error.h (error_state): Declare unconditionally.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Aug 2021 02:17:47 -0400 |
parents | 5ac6440c053d |
children | 85d8dfe7e483 |
files | libinterp/corefcn/error.h |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/error.h Fri Aug 20 01:28:10 2021 -0400 +++ b/libinterp/corefcn/error.h Fri Aug 20 02:17:47 2021 -0400 @@ -566,11 +566,14 @@ octave::interpreter_try (uwp); } -OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0") -extern OCTINTERP_API int error_state; - OCTAVE_DEPRECATED (6, "this function is obsolete and should not be needed") inline void reset_error_handler (void) { } #endif +// This symbol must have be declared with the correct visibility +// attributes when Octave is built, so it must appear unconditionally in +// this header file. +OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0") +extern OCTINTERP_API int error_state; + #endif