From 7b064bc2262bfb4134fa12534290567032d9d6ff Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 30 Dec 2011 19:00:41 +0000 Subject: [PATCH] Need an explicit #include to avoid compile errors. Not sure why it isn't using the one it the %TypeHeaderCode... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/wrapsizer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etg/wrapsizer.py b/etg/wrapsizer.py index 90a81e37..b5a84fc2 100644 --- a/etg/wrapsizer.py +++ b/etg/wrapsizer.py @@ -19,7 +19,7 @@ DOCSTRING = "" # this script. ITEMS = [ "wxWrapSizer", ] - + #--------------------------------------------------------------------------- def run(): @@ -30,6 +30,8 @@ def run(): #----------------------------------------------------------------- # Tweak the parsed meta objects in the module object as needed for # customizing the generated code and docstrings. + + module.addHeaderCode("#include ") c = module.find('wxWrapSizer') assert isinstance(c, etgtools.ClassDef)