diff --git a/Lib/octave/octtypemaps.swg b/Lib/octave/octtypemaps.swg index 652112312..4984fddf7 100644 --- a/Lib/octave/octtypemaps.swg +++ b/Lib/octave/octtypemaps.swg @@ -33,7 +33,7 @@ // raise %runtime %{ -void SWIG_Octave_Raise(const octave_value &obj, const char *type) { +SWIGINTERN void SWIG_Octave_Raise(const octave_value &obj, const char *type) { if (obj.is_string()) error("%s", obj.string_value().c_str()); else diff --git a/Lib/r/r.swg b/Lib/r/r.swg index 6907375d6..c1ce37c3e 100644 --- a/Lib/r/r.swg +++ b/Lib/r/r.swg @@ -27,7 +27,7 @@ SWIGEXPORT void SWIG_init(void) { %end_block %enddef %runtime %{ -void SWIG_R_Raise(SEXP obj, const char *msg) { +SWIGINTERN void SWIG_R_Raise(SEXP obj, const char *msg) { Rf_error(Rf_isString(obj) ? CHAR(Rf_asChar(obj)) : msg); } %}