[libcxx-commits] [libcxx] 4675a32 - [libc++][NFC] Remove redundant defined(_LIBCPP_BUILDING_LIBRARY)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 15 01:38:43 PDT 2023


Author: Nikolas Klauser
Date: 2023-07-15T01:38:34-07:00
New Revision: 4675a3261e53edef772932debd8a05eb8ccb61b9

URL: https://github.com/llvm/llvm-project/commit/4675a3261e53edef772932debd8a05eb8ccb61b9
DIFF: https://github.com/llvm/llvm-project/commit/4675a3261e53edef772932debd8a05eb8ccb61b9.diff

LOG: [libc++][NFC] Remove redundant defined(_LIBCPP_BUILDING_LIBRARY)

Added: 
    

Modified: 
    libcxx/include/string

Removed: 
    


################################################################################
diff  --git a/libcxx/include/string b/libcxx/include/string
index d4442507034a2b..eeff013c0e8c45 100644
--- 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


        


More information about the libcxx-commits mailing list