Skip to content

Commit

Permalink
Check Type::Native in isWindows()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Sep 18, 2023
1 parent 50ba506 commit f87a401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ namespace cppcheck {
bool isWindows() const {
return type == Type::Win32A ||
type == Type::Win32W ||
type == Type::Win64;
type == Type::Win64
#ifdef _WIN32
|| type == Type::Native
#endif
;
}

const char *toString() const {
Expand Down

0 comments on commit f87a401

Please sign in to comment.