aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.com>2024-10-08 07:29:48 +0300
committertobo <tobo@yandex-team.com>2024-10-08 07:43:47 +0300
commite9cdc6695e9950caa3a06e4552c03357809481b3 (patch)
tree473c962382dbe36221eec38e992e08c71db20b30
parent9369df9e50f63a9f79f98b06ec1f41309b6a80d6 (diff)
downloadydb-e9cdc6695e9950caa3a06e4552c03357809481b3.tar.gz
include singleton.h only if needed
использование Singleton спрятано за #ifndef _LIBCPP_VERSION - прячем инклуд аналогично commit_hash:0f8b0d3bee5ac020dd26dcadddb41b28164f4022
-rw-r--r--util/generic/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/generic/string.h b/util/generic/string.h
index b73c73e625..bfaec2d140 100644
--- a/util/generic/string.h
+++ b/util/generic/string.h
@@ -17,7 +17,9 @@
#include "bitops.h"
#include "explicit_type.h"
#include "reserve.h"
-#include "singleton.h"
+#ifndef _LIBCPP_VERSION
+ #include "singleton.h"
+#endif
#include "strbase.h"
#include "strbuf.h"
#include "string_hash.h"