diff --git a/Lib/exception.i b/Lib/exception.i index d81f76cbe..5e7b776c4 100644 --- a/Lib/exception.i +++ b/Lib/exception.i @@ -5,6 +5,10 @@ // // This SWIG library file provides language independent exception handling +#if defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON) +#error "This version of exception.i should not be used" +#endif + %insert("runtime") "swigerrors.swg" diff --git a/Lib/std_except.i b/Lib/std_except.i index 338cc8d3c..5fa8e9dd0 100644 --- a/Lib/std_except.i +++ b/Lib/std_except.i @@ -17,7 +17,7 @@ // a new std_except.i file in the target library directory. // -#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) +#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) || defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON) #error "This version of std_except.i should not be used" #endif