aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaju Mathew <shaju@google.com>2024-04-23 04:32:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-23 04:32:09 +0000
commite10984486b53439fd76c693da8257f889782069f (patch)
treeb8a00cc1972485de15ad2bd27d40600956f80aef
parentdf2d3fe1ef6f4701ec2d1259d480800db3c406f5 (diff)
parent6e55ec1dc72829b2e560fd0b29618bc4e947e5b9 (diff)
downloadadb-main.tar.gz
Merge "Include <print> header" into mainHEADmastermain
-rw-r--r--sysdeps.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps.h b/sysdeps.h
index 224a5176..a06b9394 100644
--- a/sysdeps.h
+++ b/sysdeps.h
@@ -31,12 +31,15 @@
#include <string_view>
#include <vector>
-// Include this before open/close/unlink are defined as macros below.
+// Include this before open/close/isatty/unlink are defined as macros below.
#include <android-base/errors.h>
#include <android-base/macros.h>
#include <android-base/off64_t.h>
#include <android-base/unique_fd.h>
#include <android-base/utf8.h>
+#if __has_include(<print>)
+#include <print>
+#endif
#include "adb_unique_fd.h"
#include "sysdeps/errno.h"