aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 096ad0478..2b2eeb1ab 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -3588,7 +3588,7 @@ void CppGenerator::finishGeneration()
s << "extern \"C\" {" << endl << endl;
- s << getApiExportMacro() << " PyMODINIT_FUNC" << endl << "init" << moduleName() << "()" << endl;
+ s << "PyMODINIT_FUNC " << getApiExportMacro() << endl << "init" << moduleName() << "()" << endl;
s << '{' << endl;
// module inject-code target/beginning