Add <string> fragment
Removes <string> include specifically for clang Cuts down on duplicate #include <string> in general
This commit is contained in:
parent
078dbf8d22
commit
bd5c340062
9 changed files with 17 additions and 32 deletions
|
|
@ -23,8 +23,8 @@
|
|||
// Common code for supporting the C++ std namespace
|
||||
//
|
||||
|
||||
%fragment("<string>");
|
||||
%{
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <stddef.h>
|
||||
%}
|
||||
|
|
@ -73,13 +73,7 @@ namespace std {
|
|||
#endif
|
||||
%}
|
||||
|
||||
%fragment("StdStringInclude","header") %{
|
||||
#ifdef __clang__
|
||||
#include <string>
|
||||
#endif
|
||||
%}
|
||||
|
||||
%fragment("StdTraitsCommon","header",fragment="StdStringInclude") %{
|
||||
%fragment("StdTraitsCommon","header",fragment="<string>") %{
|
||||
namespace swig {
|
||||
template <class Type>
|
||||
struct noconst_traits {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue