Skip to content

Commit

Permalink
use macros for IS_WINDOWS
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 10, 2024
1 parent 791bd02 commit 9c6dbe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Utils/ArchiveExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <cstdlib>
#include <stdexcept>
#include <string>
#include "macros.h"

using namespace std::filesystem;

Expand Down Expand Up @@ -75,8 +76,7 @@ namespace Utils

if (HIDE_7Z_COMMAND_OUTPUT)
{
bool isWindows = true;
if (isWindows)
if (Utils::IsWindows())
{
ss << " >$null 2>&1";
}
Expand All @@ -92,7 +92,7 @@ namespace Utils

auto exitCode = std::system(command.c_str());

#if defined(__linux__) || defined(__apple__)
#if !IS_WINDOWS
exitCode = WEXITSTATUS(exitCode);
#endif

Expand Down

0 comments on commit 9c6dbe3

Please sign in to comment.