File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Firestore/core/src/firebase/firestore/util Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 2424
2525#include < cstdint>
2626
27+ #if _MSC_VER
28+ // The Microsoft implementation of iso646.h defines alternative operator names
29+ // as macros and this interferes with the inline assembly, below, which uses the
30+ // `and` and `xor` instructions. Defining these as macros is conforming behavior
31+ // for C but not C++, where these are keywords.
32+ //
33+ // Unfortunately, fixing this by undefining the macros can't be enabled
34+ // everywhere because other compilers (e.g. Clang) specifically prevent the use
35+ // of these keywords as macro names.
36+ #ifdef and
37+ #undef and
38+ #endif
39+
40+ #ifdef xor
41+ #undef xor
42+ #endif
43+ #endif // _MSC_VER
44+
2745namespace firebase {
2846namespace firestore {
2947namespace util {
You can’t perform that action at this time.
0 commit comments