diff options
-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 |