[libc++][NFC] Remove redundant defined(_LIBCPP_BUILDING_LIBRARY)
authorNikolas Klauser <nikolasklauser@berlin.de>
Sat, 15 Jul 2023 08:38:07 +0000 (01:38 -0700)
committerNikolas Klauser <nikolasklauser@berlin.de>
Sat, 15 Jul 2023 08:38:34 +0000 (01:38 -0700)
libcxx/include/string

index d444250..eeff013 100644 (file)
@@ -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