Change from ABSL_DLL ABSL_CONST_INIT to ABSL_CONST_INIT ABSL_DLL

This avoids "error: an attribute list cannot appear here"

PiperOrigin-RevId: 513430681
Change-Id: I0fd31771793ee4cb66149ef4ce3e3e064dfb260d
This commit is contained in:
Derek Mauro
2023-03-01 21:29:34 -08:00
committed by Copybara-Service
parent a53d0916ec
commit 4ae8771a31
2 changed files with 6 additions and 6 deletions

View File

@@ -23,11 +23,11 @@ namespace absl {
ABSL_NAMESPACE_BEGIN
namespace log_internal {
ABSL_DLL ABSL_CONST_INIT const std::array<char, 7> kCharNull{
ABSL_CONST_INIT ABSL_DLL const std::array<char, 7> kCharNull{
{'(', 'n', 'u', 'l', 'l', ')', '\0'}};
ABSL_DLL ABSL_CONST_INIT const std::array<signed char, 7> kSignedCharNull{
ABSL_CONST_INIT ABSL_DLL const std::array<signed char, 7> kSignedCharNull{
{'(', 'n', 'u', 'l', 'l', ')', '\0'}};
ABSL_DLL ABSL_CONST_INIT const std::array<unsigned char, 7> kUnsignedCharNull{
ABSL_CONST_INIT ABSL_DLL const std::array<unsigned char, 7> kUnsignedCharNull{
{'(', 'n', 'u', 'l', 'l', ')', '\0'}};
} // namespace log_internal

View File

@@ -34,10 +34,10 @@ namespace absl {
ABSL_NAMESPACE_BEGIN
namespace log_internal {
ABSL_DLL ABSL_CONST_INIT extern const std::array<char, 7> kCharNull;
ABSL_DLL ABSL_CONST_INIT extern const std::array<signed char, 7>
ABSL_CONST_INIT ABSL_DLL extern const std::array<char, 7> kCharNull;
ABSL_CONST_INIT ABSL_DLL extern const std::array<signed char, 7>
kSignedCharNull;
ABSL_DLL ABSL_CONST_INIT extern const std::array<unsigned char, 7>
ABSL_CONST_INIT ABSL_DLL extern const std::array<unsigned char, 7>
kUnsignedCharNull;
template <typename T>