diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h index e09e82808..61ca651b1 100644 --- a/include/flatbuffers/base.h +++ b/include/flatbuffers/base.h @@ -158,7 +158,7 @@ // to detect a header that provides an implementation #if defined(__has_include) // Check for std::string_view (in c++17) - #if __has_include() && (__cplusplus >= 201606) + #if __has_include() && (__cplusplus >= 201606 || _HAS_CXX17) #include namespace flatbuffers { typedef std::string_view string_view;