diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 14:03:13 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-21 14:03:13 +0200 |
commit | bdad412587e24a78af295818550e55e24ce5f6ff (patch) | |
tree | c9a02c49b0e53cacc1e447fea7dd28857eb60252 | |
parent | Remove unknown option parsing (diff) | |
download | smolbote-bdad412587e24a78af295818550e55e24ce5f6ff.tar.xz |
Fix CommandLine socketPath define
-rw-r--r-- | src/commandline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp index f5e479c..5b48ac7 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -41,10 +41,10 @@ inline void printOption(const QCommandLineOption &option) constexpr const char *socketPath() { -#ifdef Q_OS_UNIX +#if defined(Q_OS_UNIX) // could be a path such as "/tmp/foo" return "/tmp/smolbote.socket"; -#elif Q_OS_WIN32 +#elif defined(Q_OS_WIN32) // could be a pipe path such as "\\.\pipe\foo" return = "\\\\.\\pipe\\smolbote_socket"; #endif |