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 24
24
25
25
#include < cstdint>
26
26
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
+
27
45
namespace firebase {
28
46
namespace firestore {
29
47
namespace util {
You can’t perform that action at this time.
0 commit comments