Commit 7f1af7cb authored by Brian Harris's avatar Brian Harris Committed by Wouter van Oortmerssen

Fix build with gcc version 7.4.0 (#5570)

parent 32f47ad2
...@@ -199,7 +199,7 @@ namespace flatbuffers { ...@@ -199,7 +199,7 @@ namespace flatbuffers {
// to detect a header that provides an implementation // to detect a header that provides an implementation
#if defined(__has_include) #if defined(__has_include)
// Check for std::string_view (in c++17) // Check for std::string_view (in c++17)
#if __has_include(<string_view>) && (__cplusplus >= 201606 || _HAS_CXX17) #if __has_include(<string_view>) && (__cplusplus >= 201606 || (defined(_HAS_CXX17) && _HAS_CXX17))
#include <string_view> #include <string_view>
namespace flatbuffers { namespace flatbuffers {
typedef std::string_view string_view; typedef std::string_view string_view;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment