aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-23 10:34:27 +0300
committerarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-23 10:44:11 +0300
commitb3463ec39aa72198a0df194f2d4a58a96e583aad (patch)
tree2e9660dfedd9fb9d086837a62f0180514bf34bc8 /library/cpp
parent326c3bd5cf26d13a8d61522f66e2425d8f7890dc (diff)
downloadydb-b3463ec39aa72198a0df194f2d4a58a96e583aad.tar.gz
Move NO_UNIQUE_ADDRESS macro to library/cpp/yt/misc/port.h
8b95cb159efca3d611ef0361a6f53a20b2fb5b37
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/misc/port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/cpp/yt/misc/port.h b/library/cpp/yt/misc/port.h
index 7cfb825708..e30e163a59 100644
--- a/library/cpp/yt/misc/port.h
+++ b/library/cpp/yt/misc/port.h
@@ -69,3 +69,9 @@
#else
#error Unsupported compiler
#endif
+
+#if defined(_unix_)
+ #define NO_UNIQUE_ADDRESS [[no_unique_address]]
+#else
+ #define NO_UNIQUE_ADDRESS
+#endif