From 20af03cd45c102d705245d28d05bdc8679fb4a22 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/SWIG@8230 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/std_except.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Lib/std_except.i b/Lib/std_except.i index a784e0206..642f5697b 100644 --- a/Lib/std_except.i +++ b/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