summaryrefslogtreecommitdiffstats
path: root/qtinterface
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-09 13:30:35 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-09 13:30:35 +0000
commite8f655c9225246c11d9290761459248299a1fb6a (patch)
treed2fa0c30787ee1ea76f9c66affda98e7d4a90d0a /qtinterface
parent20ec2740a5e6c2ef3eeea48ef8140aea26fb8beb (diff)
downloadtqtinterface-e8f655c9225246c11d9290761459248299a1fb6a.tar.gz
tqtinterface-e8f655c9225246c11d9290761459248299a1fb6a.zip
[dependencies/tqtinterface] prevent tqt defines for plain-C sources
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1184224 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface')
-rw-r--r--qtinterface/tqt.h.cmake13
1 files changed, 9 insertions, 4 deletions
diff --git a/qtinterface/tqt.h.cmake b/qtinterface/tqt.h.cmake
index 6db0d61..8d71c61 100644
--- a/qtinterface/tqt.h.cmake
+++ b/qtinterface/tqt.h.cmake
@@ -19,6 +19,13 @@ Boston, MA 02110-1301, USA.
*/
+/*
+ I think we do not need tqtinterface definitions for
+ plain-C sources (samelian)
+*/
+
+#ifdef __cplusplus
+
#ifndef TQT_H
#define TQT_H
@@ -38,11 +45,9 @@ Boston, MA 02110-1301, USA.
#undef TQT_SIGNAL
#endif
-#ifdef __cplusplus
#define TQT_METHOD(a) METHOD(a)
#define TQT_SLOT(a) SLOT(a)
#define TQT_SIGNAL(a) SIGNAL(a)
-#endif // __cplusplus
#ifdef USE_QT3
#define qint64 long
@@ -587,7 +592,6 @@ Boston, MA 02110-1301, USA.
//#define TQT_QT_STRING_LIST_TYPE Q3StrList
#define TQT_QT_STRING_LIST_TYPE TQStrList
-#ifdef __cplusplus
class TQT_QT_STRING_LIST_TYPE;
class QUObject;
@@ -648,7 +652,6 @@ class QUObject;
#include <tqlistiterator.h>
#include <tqstringlist.h>
-#endif // __cplusplus
#define tqchildren ptrchildren
#define tqaccess access()
@@ -1327,3 +1330,5 @@ class QUObject;
//#define TQT_EXPORT KDE_EXPORT
#endif /* TQT_H */
+
+#endif