@@ -1,14 +1,18 @@
#ifndef ENTT_STL_ATOMIC_HPP
#define ENTT_STL_ATOMIC_HPP
-#include <atomic>
-
/*! @cond ENTT_INTERNAL */
+#if __has_include(<entt/ext/stl/atomic.hpp>)
+# include <entt/ext/stl/atomic.hpp>
+#else
+# include <atomic>
+
namespace entt::stl {
using std::atomic;
} // namespace entt::stl
+#endif
/*! @endcond */
#endif
@@ -1,3 +1,6 @@
-#include <memory>
#include <gtest/gtest.h>
#include <entt/stl/atomic.hpp>
+TEST(Atomic, HasInclude) {
+ static_assert(entt::stl::entt_ext_atomic, "Header not properly included");
+}
@@ -0,0 +1,13 @@
+#ifndef ENTT_EXT_STL_ATOMIC_HPP
+#define ENTT_EXT_STL_ATOMIC_HPP
+/*! @cond ENTT_INTERNAL */
+#include <atomic>
+namespace entt::stl {
+using namespace std;
+static constexpr auto entt_ext_atomic = true;
+} // namespace entt::stl
+/*! @endcond */