From 51aa2bdea1a5a17aac199e068d1f873abfcf857d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 11 Mar 2017 04:08:13 +0100 Subject: [PATCH 1/2] Fix dependency of SwigPySequence_Base fragment This fragment needs to depend on StdTraits fragment as it specializes the template struct traits<> defined there and it could happen that the struct was not declared before being specialized, resulting in compilation errors in the generated code. It doesn't seem to need to depend on stddef.h inclusion, however, so replace it with the correct dependency instead of keeping both. --- Lib/python/pycontainer.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pycontainer.swg b/Lib/python/pycontainer.swg index d40b0baa8..a748f32e3 100644 --- a/Lib/python/pycontainer.swg +++ b/Lib/python/pycontainer.swg @@ -102,7 +102,7 @@ namespace swig { } } -%fragment("SwigPySequence_Base","header",fragment="") +%fragment("SwigPySequence_Base","header",fragment="StdTraits") { %#include From fa65b24b78050967d7abec2ffdec59d857fd3ce9 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 17 Mar 2017 19:20:02 +0000 Subject: [PATCH 2/2] Add stddef.h back in to SwigPySequence_Base fragment --- Lib/python/pycontainer.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pycontainer.swg b/Lib/python/pycontainer.swg index a748f32e3..9c96d0cbc 100644 --- a/Lib/python/pycontainer.swg +++ b/Lib/python/pycontainer.swg @@ -102,7 +102,7 @@ namespace swig { } } -%fragment("SwigPySequence_Base","header",fragment="StdTraits") +%fragment("SwigPySequence_Base","header",fragment="",fragment="StdTraits") { %#include