summaryrefslogtreecommitdiffstats
path: root/src/rtf2html
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-18 20:13:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-18 20:13:23 +0200
commit5eb938208e3ef0f9c2d8aecde27d03cd4564e255 (patch)
tree0b186abb7b29f62bdddf3a15091deb0a348ccbe8 /src/rtf2html
parent0c697cf4f9189055d5233ee58a4a9e69380bdb8e (diff)
downloadtellico-5eb938208e3ef0f9c2d8aecde27d03cd4564e255.tar.gz
tellico-5eb938208e3ef0f9c2d8aecde27d03cd4564e255.zip
Fix build with KDE_DEFAULT_CXXFLAGS
Fix FTBFS with GCC6 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/rtf2html')
-rw-r--r--src/rtf2html/rtf2html.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rtf2html/rtf2html.cpp b/src/rtf2html/rtf2html.cpp
index e6e8b34..eec9caa 100644
--- a/src/rtf2html/rtf2html.cpp
+++ b/src/rtf2html/rtf2html.cpp
@@ -14,6 +14,12 @@
* *
***************************************************************************/
+// force to use QT with STL
+#if defined(QT_NO_STL)
+# define DISABLE_QT_NO_STL
+# undef QT_NO_STL
+#endif
+
#include "rtf2html.h"
#include "rtf_table.h"
#include "rtf_tools.h"
@@ -529,3 +535,8 @@ TQString RTF2HTML::toHTML() const {
return html;
}
+// restore QT_NO_STL
+#if defined(DISABLE_QT_NO_STL)
+# undef DISABLE_QT_NO_STL
+# define QT_NO_STL
+#endif