Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion include/mrdocs/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2023 Alan de Freitas (alandefreitas@gmail.com)
// Copyright (c) 2026 Gennaro Prota (gennaro.prota@gmail.com)
//
// Official repository: https://github.com/cppalliance/mrdocs
//
Expand Down Expand Up @@ -78,8 +79,10 @@ namespace mrdocs {
#endif

#ifndef MRDOCS_NO_UNIQUE_ADDRESS
# if defined(__cpp_lib_no_unique_address)
# if __has_cpp_attribute(no_unique_address)
# define MRDOCS_NO_UNIQUE_ADDRESS [[no_unique_address]]
# elif __has_cpp_attribute(msvc::no_unique_address)
# define MRDOCS_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
# else
# define MRDOCS_NO_UNIQUE_ADDRESS
# endif
Expand Down
5 changes: 4 additions & 1 deletion libs/dom/include/mrdocs/Dom/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// Copyright (c) 2023 Alan de Freitas (alandefreitas@gmail.com)
// Copyright (c) 2026 Gennaro Prota (gennaro.prota@gmail.com)
//
// Official repository: https://github.com/cppalliance/mrdocs
//
Expand Down Expand Up @@ -34,8 +35,10 @@
# define MRDOCS_DOM_DECL
#endif

#if defined(__cpp_lib_no_unique_address)
#if __has_cpp_attribute(no_unique_address)
# define MRDOCS_DOM_NO_UNIQUE_ADDRESS [[no_unique_address]]
#elif __has_cpp_attribute(msvc::no_unique_address)
# define MRDOCS_DOM_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
#else
# define MRDOCS_DOM_NO_UNIQUE_ADDRESS
#endif
Expand Down
Loading