Skip to content

Commit a58216a

Browse files
authored
Use declspec in Firestore on Windows machines (#12758)
1 parent 0978222 commit a58216a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Firestore/core/src/util/string_format.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ static const char* kInvalid = "<invalid>";
2626

2727
// Disable asan for this function because of the way it manages stack
2828
// (nested closure) is flaged with stack underflow by clang on Ubuntu.
29+
#if defined(_MSC_VER)
30+
__declspec(no_sanitize_address) std::string StringFormatPieces(
31+
#else
2932
__attribute__((no_sanitize_address)) std::string StringFormatPieces(
33+
#endif
3034
const char* format, std::initializer_list<absl::string_view> pieces) {
3135
std::string result;
3236

0 commit comments

Comments
 (0)