From f603a020086da1115118eef206ce28a4a5829438 Mon Sep 17 00:00:00 2001 From: Snappy Team Date: Thu, 16 Mar 2023 13:35:07 -0700 Subject: [PATCH] Explicitly #include in snappy-internal.h snappy-internal.h uses std::pair, which is defined in the header. Typically, this works because existing C++ standard library implementations provide via other transitive includes; however, these transitive includes are not guaranteed to exist, and don't exist in certain contexts (e.g. compiling against LLVM's libc++ with Clang modules.) PiperOrigin-RevId: 517213822 --- snappy-internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snappy-internal.h b/snappy-internal.h index 0923f39..e442b0b 100644 --- a/snappy-internal.h +++ b/snappy-internal.h @@ -31,6 +31,8 @@ #ifndef THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_ #define THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_ +#include + #include "snappy-stubs-internal.h" #if SNAPPY_HAVE_SSSE3