aboutsummaryrefslogtreecommitdiff
path: root/sysdeps.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:21:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:21:29 +0000
commit1c9853857b99ad2d79725bdc23f653e8a03879ae (patch)
tree26c4570f6cc8f5ee36233bd88a2b1236e65a8f20 /sysdeps.h
parent4d036225cd07cab336e5520d55d6ac79d637ba0f (diff)
parentc362e05a76d7238f684234fe4ad6768c0c461b8d (diff)
downloadadb-1c9853857b99ad2d79725bdc23f653e8a03879ae.tar.gz
Change-Id: I9df115c1f3dc00849df3b80af008eaee00c476bf
Diffstat (limited to 'sysdeps.h')
-rw-r--r--sysdeps.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps.h b/sysdeps.h
index 5ba85b4d..224a5176 100644
--- a/sysdeps.h
+++ b/sysdeps.h
@@ -51,10 +51,6 @@ static inline void* mempcpy(void* dst, const void* src, size_t n) {
#ifdef _WIN32
-// Clang-only nullability specifiers
-#define _Nonnull
-#define _Nullable
-
#include <ctype.h>
#include <direct.h>
#include <dirent.h>
@@ -789,6 +785,9 @@ static inline void disable_tcp_nagle(borrowed_fd fd) {
// configured to drop after 10 missed keepalives. Returns true on success.
bool set_tcp_keepalive(borrowed_fd fd, int interval_sec);
+// Returns a human-readable OS version string.
+extern std::string GetOSVersion(void);
+
#if defined(_WIN32)
// Win32 defines ERROR, which we don't need, but which conflicts with google3 logging.
#undef ERROR