From fb4099455e0b125d1ae83a2749b6a0b58d55e8a2 Mon Sep 17 00:00:00 2001 From: Crisrael Lucero Date: Wed, 1 May 2024 12:58:09 -0700 Subject: [PATCH] [Nearby Presence] Use different include path for NEARBY_CHROMIUM Rust ldt PiperOrigin-RevId: 629810240 --- presence/implementation/ldt.cc | 4 ++++ presence/implementation/ldt.h | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/presence/implementation/ldt.cc b/presence/implementation/ldt.cc index 41a6ee8d..be1ad33a 100644 --- a/presence/implementation/ldt.cc +++ b/presence/implementation/ldt.cc @@ -22,7 +22,11 @@ #include "absl/status/statusor.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" +#ifdef NEARBY_CHROMIUM +#include "third_party/beto-core/src/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h" +#else #include "np_ldt.h" +#endif namespace nearby { namespace presence { diff --git a/presence/implementation/ldt.h b/presence/implementation/ldt.h index a76189c7..2c1322bd 100644 --- a/presence/implementation/ldt.h +++ b/presence/implementation/ldt.h @@ -18,9 +18,14 @@ #include #include +#ifdef NEARBY_CHROMIUM +#include "third_party/beto-core/src/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h" +#else +#include "np_ldt.h" +#endif + #include "absl/status/statusor.h" #include "absl/strings/string_view.h" -#include "np_ldt.h" namespace nearby { namespace presence {