Explicitly #include <utility> in snappy-internal.h

snappy-internal.h uses std::pair, which is defined in the <utility>
header. Typically, this works because existing C++ standard library
implementations provide <utility> 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
This commit is contained in:
Snappy Team 2023-03-16 13:35:07 -07:00 committed by Victor Costan
parent 9c42b71b19
commit f603a02008
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@
#ifndef THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_ #ifndef THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_
#define THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_ #define THIRD_PARTY_SNAPPY_SNAPPY_INTERNAL_H_
#include <utility>
#include "snappy-stubs-internal.h" #include "snappy-stubs-internal.h"
#if SNAPPY_HAVE_SSSE3 #if SNAPPY_HAVE_SSSE3