android_system_core/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
..
include/android-base <android-base/endian.h>: fix interoperability issue 2019-09-18 13:06:45 +08:00
.clang-format
Android.bp Remove -D_FILE_OFFSET_BITS=64 on host builds 2019-09-12 00:27:38 +00:00
CPPLINT.cfg
OWNERS
abi_compatibility.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
chrono_utils.cpp
chrono_utils_test.cpp
cmsg.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
cmsg_test.cpp base: add helpers for sending/receiving file descriptors. 2019-02-13 13:21:54 -08:00
endian_test.cpp
errors_test.cpp
errors_unix.cpp Add header that defines strerror() 2019-08-08 23:31:36 +00:00
errors_windows.cpp
expected_test.cpp Add expected<void,E> 2019-06-07 08:10:32 +09:00
file.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
file_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00
format_benchmark.cpp Create android-base/format.h that includes fmtlib headers 2019-06-14 14:55:27 -07:00
logging.cpp Base: Explicitly set abort message on FATAL 2018-12-05 12:59:15 -08:00
logging_test.cpp Add Start/Stop/Reset to CapturedStdFd. 2018-09-04 14:29:23 -07:00
macros_test.cpp
mapped_file.cpp [base] Make MappedFile work with OS file handles 2019-08-14 10:04:32 -07:00
mapped_file_test.cpp [base] Make MappedFile work with OS file handles 2019-08-14 10:04:32 -07:00
parsedouble_test.cpp
parseint_test.cpp
parsenetaddress.cpp
parsenetaddress_test.cpp
process.cpp Add android::base::GetPids() function to return all pids 2019-07-01 13:55:46 -07:00
process_test.cpp Add android::base::GetPids() function to return all pids 2019-07-01 13:55:46 -07:00
properties.cpp
properties_test.cpp
quick_exit.cpp
quick_exit_test.cpp
result_test.cpp Add Errorf and ErrnoErrorf 2019-06-14 14:29:36 +09:00
scopeguard_test.cpp
stringprintf.cpp
stringprintf_test.cpp
strings.cpp [base] Convert Starts/Ends/Equals string functions to string_view 2019-03-21 16:29:46 +00:00
strings_test.cpp libbase: add ConsumePrefix/ConsumeSuffix. 2019-05-03 12:49:31 -07:00
test_main.cpp
test_utils.cpp base: move TemporaryFile and TemporaryDir to android-base/file.h 2018-11-13 12:44:21 -08:00
test_utils_test.cpp Add Start/Stop/Reset to CapturedStdFd. 2018-09-04 14:29:23 -07:00
threads.cpp
utf8.cpp
utf8_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 09:35:34 -08:00