aboutsummaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-19 18:40:36 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-19 18:55:10 -0300
commitb0ae63688bb1299476188ad9f1c022553a25912a (patch)
tree70e492cd54fdec279d692d8e1f672c35e6cbda85 /headergenerator.cpp
parent2937fea56a9899627ddf4c796f7445bbbf94b0c2 (diff)
Get ride of PyMODINIT_FUNC, since it doesn't correctly set the visibility rules on Linux.
Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index 1c761639a..0d7524cbd 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -395,7 +395,6 @@ void HeaderGenerator::finishGeneration()
s << "#include <memory>" << endl << endl;
if (usePySideExtensions())
s << "#include <qsignal.h>" << endl;
- writeExportMacros(s);
QStringList requiredTargetImports = TypeDatabase::instance()->requiredTargetImports();
if (!requiredTargetImports.isEmpty()) {
@@ -465,23 +464,6 @@ void HeaderGenerator::finishGeneration()
s << "#endif // " << includeShield << endl << endl;
}
-
-void HeaderGenerator::writeExportMacros(QTextStream& s)
-{
- QString macro = getApiExportMacro();
- s << "\
-#if defined _WIN32 || defined __CYGWIN__\n\
- #define " << macro << " __declspec(dllexport)\n\
-#else\n\
-#if __GNUC__ >= 4\n\
- #define " << macro << " __attribute__ ((visibility(\"default\")))\n\
-#else\n\
- #define " << macro << "\n\
-#endif\n\
-#endif\n\
-\n";
-}
-
void HeaderGenerator::writeSbkTypeFunction(QTextStream& s, const AbstractMetaEnum* cppEnum)
{
QString enumName = cppEnum->name();