Move some header file includes into fragments for UTL languages

This commit is contained in:
William S Fulton 2014-02-21 19:02:14 +00:00
commit 0d9a8721f4
16 changed files with 33 additions and 37 deletions

View file

@ -52,9 +52,9 @@
}
}
*/
%{
#include <stdexcept>
%}
%fragment("<stdexcept>");
%define SWIG_CATCH_STDEXCEPT
/* catching std::exception */
catch (std::invalid_argument& e) {

View file

@ -157,6 +157,14 @@
#include <string>
%}
%fragment("<stdexcept>", "header") %{
#include <stdexcept>
%}
%fragment("<algorithm>", "header") %{
#include <algorithm>
%}
%fragment("SWIG_isfinite","header",fragment="<math.h>,<float.h>") %{
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
#ifndef SWIG_isfinite

View file

@ -22,9 +22,7 @@
//
%fragment("<string>");
%{
#include <stdexcept>
%}
%fragment("<stdexcept>");
%fragment("Traits","header",fragment="<string>")
{