|
@@ -1,15 +1,19 @@
|
|
|
#ifndef ENTT_STL_STRING_VIEW_HPP
|
|
#ifndef ENTT_STL_STRING_VIEW_HPP
|
|
|
#define ENTT_STL_STRING_VIEW_HPP
|
|
#define ENTT_STL_STRING_VIEW_HPP
|
|
|
|
|
|
|
|
-#include <string_view>
|
|
|
|
|
-
|
|
|
|
|
/*! @cond ENTT_INTERNAL */
|
|
/*! @cond ENTT_INTERNAL */
|
|
|
|
|
+#if __has_include(<entt/ext/stl/string_view.hpp>)
|
|
|
|
|
+# include <entt/ext/stl/string_view.hpp>
|
|
|
|
|
+#else
|
|
|
|
|
+# include <string_view>
|
|
|
|
|
+
|
|
|
namespace entt::stl {
|
|
namespace entt::stl {
|
|
|
|
|
|
|
|
using std::string_view;
|
|
using std::string_view;
|
|
|
using std::swap;
|
|
using std::swap;
|
|
|
|
|
|
|
|
} // namespace entt::stl
|
|
} // namespace entt::stl
|
|
|
|
|
+#endif
|
|
|
/*! @endcond */
|
|
/*! @endcond */
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|