summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-18 19:14:30 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-19 11:37:06 -0300
commitf056f08a8495f89037292b3c273aba254610ee8a (patch)
treeae6041660c8771d0d27402936d077879a5247b47
parent285c84f27d60df6bf117731fa71a33717d063013 (diff)
downloadshiboken-f056f08a8495f89037292b3c273aba254610ee8a.tar.gz
shiboken-f056f08a8495f89037292b3c273aba254610ee8a.tar.xz
shiboken-f056f08a8495f89037292b3c273aba254610ee8a.zip
Fixed module initialization export.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 096ad047..2b2eeb1a 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