From 1440dc8c183ec704ba24f659c640e430ee6da58a Mon Sep 17 00:00:00 2001 From: Theofilos Intzoglou Date: Tue, 11 Oct 2011 16:29:01 +0300 Subject: Fix includes for C files to get everything building ok --- src/Qt/helper.cpp | 1 - src/Qt/helper.h | 3 +++ src/Qt/qlistconverter.h | 2 ++ src/Qt/qpackageproperties.h | 3 +++ src/Qt/qportage.cpp | 3 +++ src/Qt/qportagesettings.h | 5 ++++- src/Qt/tests/test.cpp | 4 ++-- 7 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Qt/helper.cpp b/src/Qt/helper.cpp index 93a00fe..c745eae 100644 --- a/src/Qt/helper.cpp +++ b/src/Qt/helper.cpp @@ -1,5 +1,4 @@ #include "helper.h" -#include QStringList CListToQStringList(StringList *clist) { diff --git a/src/Qt/helper.h b/src/Qt/helper.h index b45c14a..4979ffb 100644 --- a/src/Qt/helper.h +++ b/src/Qt/helper.h @@ -1,5 +1,8 @@ #include + +extern "C" { #include +} QStringList CListToQStringList(StringList *); StringList* QStringListToCList(const QStringList&); \ No newline at end of file diff --git a/src/Qt/qlistconverter.h b/src/Qt/qlistconverter.h index 83f73fc..ffd52ba 100644 --- a/src/Qt/qlistconverter.h +++ b/src/Qt/qlistconverter.h @@ -1,7 +1,9 @@ #ifndef QLISTCONVERTER_H #define QLISTCONVERTER_H +extern "C" { #include "../stringlist.h" +} #include diff --git a/src/Qt/qpackageproperties.h b/src/Qt/qpackageproperties.h index fcda875..bf20cfb 100644 --- a/src/Qt/qpackageproperties.h +++ b/src/Qt/qpackageproperties.h @@ -2,7 +2,10 @@ #define QPACKAGEPROPERTIES_H #include + +extern "C" { #include "../packageproperties.h" +} class QString; diff --git a/src/Qt/qportage.cpp b/src/Qt/qportage.cpp index bf313ea..97359eb 100644 --- a/src/Qt/qportage.cpp +++ b/src/Qt/qportage.cpp @@ -20,8 +20,11 @@ #include "helper.h" #include "qportage.h" + +extern "C" { #include #include +} namespace CppPortage { diff --git a/src/Qt/qportagesettings.h b/src/Qt/qportagesettings.h index 652020c..f10c565 100644 --- a/src/Qt/qportagesettings.h +++ b/src/Qt/qportagesettings.h @@ -3,9 +3,12 @@ #include -#include "../portagesettings.h" #include "qlistconverter.h" +extern "C" { +#include "../portagesettings.h" +} + class QString; class QStringList; diff --git a/src/Qt/tests/test.cpp b/src/Qt/tests/test.cpp index c8329b1..a418551 100644 --- a/src/Qt/tests/test.cpp +++ b/src/Qt/tests/test.cpp @@ -1,9 +1,9 @@ -#include +#include #include int main(int argc, char *argv[]) { - QApplication app(argc,argv); + QCoreApplication app(argc,argv); return app.exec(); -- cgit v1.2.3