mirror of https://github.com/google/snappy.git
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:
parent
9c42b71b19
commit
f603a02008
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue