From 9e46ce1a5af14cc4e02e721d1dbffa20623bcfbd Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 6 Jan 2006 00:27:49 +0000 Subject: [PATCH] add missing ; detected by improper inclusion of this file via stl.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8230 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/std_except.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SWIG/Lib/std_except.i b/SWIG/Lib/std_except.i index a784e0206..642f5697b 100644 --- a/SWIG/Lib/std_except.i +++ b/SWIG/Lib/std_except.i @@ -4,7 +4,16 @@ %include #else + +/* avoid to include std/std_except.i unless we really need it */ +#if !defined(SWIG_STD_EXCEPTIONS_AS_CLASSES) +%{ +#include +%} +#else %include +#endif + // Typemaps used by the STL wrappers that throw exceptions. // These typemaps are used when methods are declared with an STL