Skip to content

Commit f87a401

Browse files
committed
Check Type::Native in isWindows()
1 parent 50ba506 commit f87a401

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/platform.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ namespace cppcheck {
139139
bool isWindows() const {
140140
return type == Type::Win32A ||
141141
type == Type::Win32W ||
142-
type == Type::Win64;
142+
type == Type::Win64
143+
#ifdef _WIN32
144+
|| type == Type::Native
145+
#endif
146+
;
143147
}
144148

145149
const char *toString() const {

0 commit comments

Comments
 (0)