diff options
author | 2023-08-10 16:24:10 -0700 | |
---|---|---|
committer | 2023-08-10 16:24:57 -0700 | |
commit | a2639e312fae461cb9c6845fac3cfcc2b440a909 (patch) | |
tree | 67dce4f1fa3f5b1378478275593a244da1265db4 | |
parent | 06fded412db6e2a6c0b439c468757e9f91fac6d0 (diff) |
Fixed shared Windows build in Chrome when building MediaPipe.
The MediaPipe library calls absl::SleepFor() but that causes linker errors in Chrome's (non-production) shared library build because AbslInternalSleepFor isn't exported.
PiperOrigin-RevId: 555699667
Change-Id: I95033857ec13ed72ff2a80001878b5e35bbeee91
-rw-r--r-- | absl/time/clock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/absl/time/clock.h b/absl/time/clock.h index 5fe244d6..3cdc55a7 100644 --- a/absl/time/clock.h +++ b/absl/time/clock.h @@ -22,6 +22,7 @@ #ifndef ABSL_TIME_CLOCK_H_ #define ABSL_TIME_CLOCK_H_ +#include "absl/base/config.h" #include "absl/base/macros.h" #include "absl/time/time.h" @@ -64,7 +65,8 @@ ABSL_NAMESPACE_END // By changing our extension points to be extern "C", we dodge this // check. extern "C" { -void ABSL_INTERNAL_C_SYMBOL(AbslInternalSleepFor)(absl::Duration duration); +ABSL_DLL void ABSL_INTERNAL_C_SYMBOL(AbslInternalSleepFor)( + absl::Duration duration); } // extern "C" inline void absl::SleepFor(absl::Duration duration) { |