# HG changeset patch # User Markus Mützel # Date 1678712356 -3600 # Node ID 123c5d78fc9dda452f20e64b5026dd604a131e98 # Parent 4ab90bed411b5ab203cd71b5a834281da03f0d8c quit.h: Do not declare functions in namespaces inside extern "C" block. * liboctave/util/quit.h: Name mangling of functions in namespaces inside extern "C" blocks might be undefined. At least, GCC and Clang seem to behave differently. Move function declarations that are in the "octave" namespace out of the extern "C" block. diff -r 4ab90bed411b -r 123c5d78fc9d liboctave/util/quit.h --- a/liboctave/util/quit.h Sat Mar 11 17:22:33 2023 -0800 +++ b/liboctave/util/quit.h Mon Mar 13 13:59:16 2023 +0100 @@ -36,7 +36,6 @@ # include # include # include -extern "C" { #else # include #endif @@ -200,6 +199,8 @@ OCTAVE_END_NAMESPACE(octave) +extern "C" { + #endif // The following enum values are deprecated and will eventually be