From 9a8a5ee54575c2aeb6e4b91d236b4bcdb9b29f9c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 27 Jun 2017 20:14:24 -0700 Subject: [PATCH] relocate the sip directives to fix earlier premature commit --- src/wxpy_api.sip | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wxpy_api.sip b/src/wxpy_api.sip index d53afd0e..a3a60e63 100644 --- a/src/wxpy_api.sip +++ b/src/wxpy_api.sip @@ -552,14 +552,6 @@ void i_wxPyReinitializeModules() { // Route the various usages of the PyDate_ APIs through our API, so we only // have to worry about PyDateTime_IMPORT being needed in one compilation unit. -%ModuleHeaderCode - #include -%End - -%InitialisationCode - PyDateTime_IMPORT; -%End - int i_wxPyDateTime_Check(PyObject *obj) { return PyDateTime_Check(obj); } @@ -614,6 +606,15 @@ static wxPyAPI API = { %End +%ModuleHeaderCode + #include +%End + +%InitialisationCode + PyDateTime_IMPORT; +%End + + %PostInitialisationCode // Code that will run when _core is imported that will stash away a