Skip to content

Commit

Permalink
Add flag for AOSP vendor uage
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Apr 26, 2024
1 parent 2919314 commit aa4db41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ cc_defaults {
"-DREALM_ENABLE_SYNC=1",
"-DREALM_ENABLE_GEOSPATIAL=1",
"-DREALM_HAVE_EPOLL=1",
"-DREALM_AOSP_VENDOR=1",
"-Wno-non-virtual-dtor",
"-Wno-missing-field-initializers",
],
Expand Down
2 changes: 1 addition & 1 deletion src/realm/object-store/util/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// As a result, we cannot utilize the built-in ALooper functionality.
// Instead, we require users to provide their own scheduler implementation.

#if REALM_ANDROID && __has_include(<android/looper.h>)
#if REALM_ANDROID && !defined(REALM_AOSP_VENDOR)
#define HAS_ANDROID_ALOOPER
#endif

Expand Down

0 comments on commit aa4db41

Please sign in to comment.