File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/include/firebase/firestore Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ add_custom_target(
347
347
# are guarded by this flag, such as GetUserAgent and function_registry.
348
348
set (FIREBASE_FIRESTORE_CPP_DEFINES -DINTERNAL_EXPERIMENTAL=1 )
349
349
350
- if (WIN32 AND NOT ANDROID AND NOT IOS )
350
+ if (MSVC AND NOT ANDROID AND NOT IOS )
351
351
# On Windows, gRPC gives a compiler error in firebase_metadata_provider_desktop.cc
352
352
# unless _WIN32_WINNT is defined to this value (0x0600, Windows Vista).
353
353
# Also set -DNOMINMAX for both Firestore and Firestore Core.
Original file line number Diff line number Diff line change @@ -348,7 +348,8 @@ class FieldValue final {
348
348
// Note: Doxygen will run into trouble if this function's definition is
349
349
// moved outside the class body.
350
350
static_assert (
351
- std::numeric_limits<T>::max () <= std::numeric_limits<int64_t >::max (),
351
+ (std::numeric_limits<T>::max)() <=
352
+ (std::numeric_limits<int64_t >::max)(),
352
353
" The integer type you provided is larger than can fit in an int64_t. "
353
354
" If you are sure the value will not be truncated, please explicitly "
354
355
" cast to int64_t before passing it to FieldValue::Increment()." );
@@ -377,7 +378,7 @@ class FieldValue final {
377
378
// Note: Doxygen will run into trouble if this function's definition is
378
379
// moved outside the class body.
379
380
static_assert (
380
- std::numeric_limits<T>::max () <= std::numeric_limits<double >::max (),
381
+ ( std::numeric_limits<T>::max) () <= ( std::numeric_limits<double >::max) (),
381
382
" The floating point type you provided is larger than can fit in a "
382
383
" double. If you are sure the value will not be truncated, please "
383
384
" explicitly cast to double before passing it to "
You can’t perform that action at this time.
0 commit comments