File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#include " Firestore/core/include/firebase/firestore/firestore_errors.h"
29
29
30
+ #if defined(__ANDROID__)
31
+ // The firebase-cpp-sdk has issues compiling Abseil on Android in some cases;
32
+ // therefore, use `__EXCEPTIONS`, which is known to be set by clang in Android
33
+ // NDK r21e, instead of using `ABSL_HAVE_EXCEPTIONS`. In the future, consider
34
+ // using `__cpp_exceptions` instead, as the internet seems to suggest that it
35
+ // is more reliable with modern c++ compilers, such as those in NDK r21e.
36
+ #if __EXCEPTIONS
37
+ #define FIRESTORE_HAVE_EXCEPTIONS 1
38
+ #endif
39
+
40
+ #else // !defined(__ANDROID__)
41
+ // On any other supported platform, just take Abseil's word for it.
30
42
#include " absl/base/config.h"
31
43
32
44
#if ABSL_HAVE_EXCEPTIONS
33
45
#define FIRESTORE_HAVE_EXCEPTIONS 1
34
46
#endif
47
+ #endif // defined(__ANDROID__)
35
48
36
49
namespace firebase {
37
50
namespace firestore {
You can’t perform that action at this time.
0 commit comments