projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02d349
)
[libc++][NFC] Remove redundant defined(_LIBCPP_BUILDING_LIBRARY)
author
Nikolas Klauser
<nikolasklauser@berlin.de>
Sat, 15 Jul 2023 08:38:07 +0000
(
01:38
-0700)
committer
Nikolas Klauser
<nikolasklauser@berlin.de>
Sat, 15 Jul 2023 08:38:34 +0000
(
01:38
-0700)
libcxx/include/string
patch
|
blob
|
history
diff --git
a/libcxx/include/string
b/libcxx/include/string
index
d444250
..
eeff013
100644
(file)
--- a/
libcxx/include/string
+++ b/
libcxx/include/string
@@
-1557,7
+1557,7
@@
public:
const value_type* c_str() const _NOEXCEPT {return data();}
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
const value_type* data() const _NOEXCEPT {return std::__to_address(__get_pointer());}
-#if _LIBCPP_STD_VER >= 17
|| defined(_LIBCPP_BUILDING_LIBRARY)
+#if _LIBCPP_STD_VER >= 17
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
value_type* data() _NOEXCEPT {return std::__to_address(__get_pointer());}
#endif