Add <string> fragment

Removes <string> include specifically for clang
Cuts down on duplicate #include <string> in general
This commit is contained in:
William S Fulton 2014-02-15 23:30:14 +00:00
commit bd5c340062
9 changed files with 17 additions and 32 deletions

View file

@ -149,8 +149,12 @@
#endif
%}
%fragment("<stddef.h>", "header") %{
#include <stddef.h>
%fragment("<stddef.h>", "header") %{
#include <stddef.h>
%}
%fragment("<string>", "header") %{
#include <string>
%}
%fragment("SWIG_isfinite","header",fragment="<math.h>,<float.h>") %{

View file

@ -8,10 +8,8 @@
%include <typemaps/std_strings.swg>
%{
#include <string>
%}
%fragment("<string>");
namespace std
{
%naturalvar string;

View file

@ -7,8 +7,8 @@
%{
#include <cwchar>
#include <string>
%}
%fragment("<string>");
namespace std
{

View file

@ -21,18 +21,12 @@
// Common code for supporting the STD C++ namespace
//
%fragment("<string>");
%{
#include <string>
#include <stdexcept>
%}
%fragment("StdStringInclude","header") %{
#ifdef __clang__
#include <string>
#endif
%}
%fragment("Traits","header",fragment="StdStringInclude")
%fragment("Traits","header",fragment="<string>")
{
namespace swig {
/*