platform_system_core/base/include/android-base
Bowgo Tsai 41d8a576ec <android-base/endian.h>: fix interoperability issue
<winsock2.h> has defined htonl(), ntohl(), htons() and ntohs() with
different return type that cannot be replaced by those macro definitions
in <android-base/endian.h>.

Includes <winsock2.h> first to prevent them from being replaced.
Then defines the macro later so we don't need to call into DLL
when using those functions.

Bug: 139639521
Test: m libbase_test && wine out/host/windows-x86/nativetest64/libbase_test/libbase_test64.exe
Test: m checkbuild
Change-Id: I672f23a31c6800df10e04d36695d446bca4c91e9
2019-09-18 13:06:45 +08:00
..
chrono_utils.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
cmsg.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
collections.h base: add helpers for sending/receiving file descriptors. 2019-02-13 13:21:54 -08:00
endian.h <android-base/endian.h>: fix interoperability issue 2019-09-18 13:06:45 +08:00
errors.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
expected.h Add noexcept to missing places in expected.h 2019-07-09 17:06:08 -07:00
file.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
format.h Include chrono.h 2019-08-27 20:38:14 +00:00
logging.h Fix a few clang-tidy issues and add NOLINT for others 2019-07-09 16:17:36 +00:00
macros.h libbase: remove ARRAYSIZE_UNSAFE. 2018-10-24 14:34:52 -07:00
mapped_file.h [base] Make MappedFile work with OS file handles 2019-08-14 10:04:32 -07:00
memory.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
off64_t.h libbase: a slightly cleaner solution to libbase's off64_t problem. 2018-10-25 16:29:02 -07:00
parsedouble.h ParseFloat/ParseDouble, also take std::string 2018-08-09 10:49:45 -07:00
parseint.h Assert that ParseInt/ParseUint are only used with signed/unsigned numbers respectively 2018-10-05 14:30:39 -07:00
parsenetaddress.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
process.h Add android::base::GetPids() function to return all pids 2019-07-01 13:55:46 -07:00
properties.h base: fix out of date documentation with PropertySet() 2019-06-05 10:31:33 -07:00
quick_exit.h base: add quick_exit emulation. 2016-09-13 17:54:50 -07:00
result.h Create android-base/format.h that includes fmtlib headers 2019-06-14 14:55:27 -07:00
scopeguard.h Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
stringprintf.h libbase: switch to #pragma once. 2018-06-26 17:17:41 -07:00
strings.h libbase: add ConsumePrefix/ConsumeSuffix. 2019-05-03 12:49:31 -07:00
test_utils.h base: move TemporaryFile and TemporaryDir to android-base/file.h 2018-11-13 12:44:21 -08:00
thread_annotations.h base: add ScopedLockAssertion. 2019-02-12 16:32:35 -08:00
threads.h Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
unique_fd.h Improve codegen slightly when doing FD validity checks 2019-09-04 13:46:50 -07:00
utf8.h Add sys/types.h in utf8.h 2018-09-21 10:46:35 -07:00