Skip to content

Commit

Permalink
CI: '_MSVC_LANG' is not defined, evaluates to 0 [-Werror,-Wundef]
Browse files Browse the repository at this point in the history
This showed up in the kotlin/Native CI build.
  • Loading branch information
axxel committed Dec 26, 2024
1 parent f3c1c49 commit 4eb596b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/BitHacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

// MSVC has the <bit> header but then warns about including it.
// We check for _MSVC_LANG here as well, so client code is depending on /Zc:__cplusplus
#if __has_include(<bit>) && (__cplusplus > 201703L || _MSVC_LANG > 201703L)
#if __has_include(<bit>) && (__cplusplus > 201703L || (defined(_MSVC_LANG) && _MSVC_LANG > 201703L))
#include <bit>
#if __cplusplus > 201703L && defined(__ANDROID__) // NDK 25.1.8937393 has the implementation but fails to advertise it
#define __cpp_lib_bitops 201907L
Expand Down

0 comments on commit 4eb596b

Please sign in to comment.