From f3b8d7cbc13e79dce54343889171601263dcfa8f Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 20 Jan 2016 10:26:12 +0100 Subject: [PATCH] + simplify porting of Test module to Python3 --- src/Mod/Test/Gui/AppTestGui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/Test/Gui/AppTestGui.cpp b/src/Mod/Test/Gui/AppTestGui.cpp index 548e431064..f9ac6d764e 100644 --- a/src/Mod/Test/Gui/AppTestGui.cpp +++ b/src/Mod/Test/Gui/AppTestGui.cpp @@ -88,8 +88,7 @@ void loadTestResource() } /* Python entry */ -extern "C" { -void AppTestGuiExport initQtUnitGui() +PyMODINIT_FUNC initQtUnitGui() { // the following constructor call registers our extension module // with the Python runtime system @@ -101,5 +100,3 @@ void AppTestGuiExport initQtUnitGui() loadTestResource(); return; } - -} // extern "C"