summaryrefslogtreecommitdiffstats
path: root/ksquirrel/sq_libraryhandler.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-07-12 19:04:57 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-07-12 19:04:57 +0200
commit8f8831f315b8f75565455416c168fc80bfac9b9e (patch)
treec50cb1e081f06f2b11480ef645c4829aa7859c2c /ksquirrel/sq_libraryhandler.cpp
parent9a4419b617a931aa96ce6aa5b7f13a0af209dd31 (diff)
downloadksquirrel-8f8831f315b8f75565455416c168fc80bfac9b9e.tar.gz
ksquirrel-8f8831f315b8f75565455416c168fc80bfac9b9e.zip
Use preprocessor stringify for libksquirrel definitions
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ksquirrel/sq_libraryhandler.cpp')
-rw-r--r--ksquirrel/sq_libraryhandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ksquirrel/sq_libraryhandler.cpp b/ksquirrel/sq_libraryhandler.cpp
index 51d5e9b..3b6cf2c 100644
--- a/ksquirrel/sq_libraryhandler.cpp
+++ b/ksquirrel/sq_libraryhandler.cpp
@@ -41,6 +41,11 @@
#include <iostream>
#include <iomanip>
+#if !defined(QT_STRINGIFY)
+# define QT_STRINGIFY2(x) #x
+# define QT_STRINGIFY(x) QT_STRINGIFY2(x)
+#endif
+
static const int buffer_size = 10;
SQ_LibraryHandler * SQ_LibraryHandler::m_instance = 0;
@@ -513,7 +518,7 @@ void SQ_LibraryHandler::load()
{
TQStringList libs;
- TQDir dir(SQ_KLIBS, TQString(), TQDir::Unsorted, TQDir::Files);
+ TQDir dir(QT_STRINGIFY(SQ_KLIBS), TQString(), TQDir::Unsorted, TQDir::Files);
const TQFileInfoList *list = dir.entryInfoList();