// Base to std::allocator -*- C++ -*-
-// Copyright (C) 2004-2013 Free Software Foundation, Inc.
+// Copyright (C) 2004-2023 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
# define __allocator_base __gnu_cxx::malloc_allocator
#endif
+#ifndef _GLIBCXX_SANITIZE_STD_ALLOCATOR
+# if defined(__SANITIZE_ADDRESS__)
+# define _GLIBCXX_SANITIZE_STD_ALLOCATOR 1
+# elif defined __has_feature
+# if __has_feature(address_sanitizer)
+# define _GLIBCXX_SANITIZE_STD_ALLOCATOR 1
+# endif
+# endif
+#endif
+
#endif