summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:15:47 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:48:16 -0300
commitc68f96c1c49afa14bd0907bddeee053264d032c1 (patch)
tree64a7de988ddedfa579846718c945029c29bc2fce
parent6c411b3fb53984ec35b04cad98f30d6b28361216 (diff)
downloadgeneratorrunner-c68f96c1c49afa14bd0907bddeee053264d032c1.tar.gz
generatorrunner-c68f96c1c49afa14bd0907bddeee053264d032c1.tar.xz
generatorrunner-c68f96c1c49afa14bd0907bddeee053264d032c1.zip
Use diferent path separators for windows and unices.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 55e658a..dfa79e8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -29,7 +29,11 @@
#include "generatorrunnerconfig.h"
#include "generator.h"
-#define PATH_SPLITTER ":"
+#ifdef _WINDOWS
+ #define PATH_SPLITTER ";"
+#else
+ #define PATH_SPLITTER ":"
+#endif
static void printOptions(QTextStream& s, const QMap<QString, QString>& options) {
QMap<QString, QString>::const_iterator it = options.constBegin();