aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2024-03-19 19:56:00 -0700
committerRyan Prichard <rprichard@google.com>2024-03-19 19:56:00 -0700
commitffaa0a91d791e86ed2e3cf880e9dd77a0d2b7368 (patch)
tree3b893d3e9765f526d0579e6edf05414369d3dbed
parent8b116a3f5dea5f64f272806ad87826d100d50f94 (diff)
downloadpuffin-ffaa0a91d791e86ed2e3cf880e9dd77a0d2b7368.tar.gz
Add missing <functional> includes
The new libc++ omits some transitive includes, triggering build failures in places that don't include the headers they need. Bug: 175635923 Test: lunch aosp_cf_x86_64_only_phone-trunk_staging-userdebug cd external/puffin mm Change-Id: I0d4918f292f05286cfd3547e50b4e37ab2780bd0
-rw-r--r--src/bit_reader.h1
-rw-r--r--src/bit_writer.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bit_reader.h b/src/bit_reader.h
index cc6953f..da25028 100644
--- a/src/bit_reader.h
+++ b/src/bit_reader.h
@@ -7,6 +7,7 @@
#include <cstddef>
#include <cstdint>
+#include <functional>
#include "puffin/src/include/puffin/common.h"
diff --git a/src/bit_writer.h b/src/bit_writer.h
index f349d40..b0729a0 100644
--- a/src/bit_writer.h
+++ b/src/bit_writer.h
@@ -7,6 +7,7 @@
#include <cstddef>
#include <cstdint>
+#include <functional>
#include "puffin/src/include/puffin/common.h"