24#include <seastar/util/modules.hh>
28#if __has_include(<memory_resource>)
29#include <memory_resource>
31#include <experimental/memory_resource>
33 using namespace std::experimental::pmr;
42#define __has_feature(x) 0
46#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
47#define SEASTAR_ASAN_ENABLED
50#if __has_include(<source_location>)
51#include <source_location>
54#if defined(__cpp_lib_source_location) && !defined(SEASTAR_BROKEN_SOURCE_LOCATION)
56#elif __has_include(<experimental/source_location>) && !defined(SEASTAR_BROKEN_SOURCE_LOCATION)
57#include <experimental/source_location>
59#include <seastar/util/source_location-compat.hh>
64namespace seastar::compat {
65SEASTAR_MODULE_EXPORT_BEGIN
67#if defined(__cpp_lib_source_location) && !defined(SEASTAR_BROKEN_SOURCE_LOCATION)
68using source_location = std::source_location;
69#elif __has_include(<experimental/source_location>) && !defined(SEASTAR_BROKEN_SOURCE_LOCATION)
70using source_location = std::experimental::source_location;
72using source_location = seastar::internal::source_location;
75SEASTAR_MODULE_EXPORT_END