summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnappy Team <no-reply@google.com>2023-03-16 13:35:07 -0700
committerVictor Costan <costan@google.com>2023-03-29 17:31:10 -0700
commitf603a020086da1115118eef206ce28a4a5829438 (patch)
tree6d18772ba6edde9c72ac901dd8d1228cd83955d1
parent9c42b71b19da081767de587e302ea5f635a67281 (diff)
downloadsnappy-git-f603a020086da1115118eef206ce28a4a5829438.tar.gz
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
-rw-r--r--snappy-internal.h2
1 files changed, 2 insertions, 0 deletions
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 <utility>
+
#include "snappy-stubs-internal.h"
#if SNAPPY_HAVE_SSSE3