Merge "base: adb.exe build error"

This commit is contained in:
Treehugger Robot 2018-02-06 00:09:28 +00:00 committed by Gerrit Code Review
commit 6760466063
3 changed files with 4 additions and 3 deletions

View File

@ -45,6 +45,7 @@ cc_library {
support_system_process: true,
},
srcs: [
"chrono_utils.cpp",
"file.cpp",
"logging.cpp",
"parsenetaddress.cpp",
@ -72,14 +73,12 @@ cc_library {
},
linux: {
srcs: [
"chrono_utils.cpp",
"errors_unix.cpp",
],
cppflags: ["-Wexit-time-destructors"],
},
darwin: {
srcs: [
"chrono_utils.cpp",
"errors_unix.cpp",
],
cppflags: ["-Wexit-time-destructors"],

View File

@ -28,7 +28,7 @@ boot_clock::time_point boot_clock::now() {
return boot_clock::time_point(std::chrono::seconds(ts.tv_sec) +
std::chrono::nanoseconds(ts.tv_nsec));
#else
// Darwin does not support clock_gettime.
// Darwin and Windows do not support clock_gettime.
return boot_clock::time_point();
#endif // __linux__
}

View File

@ -20,7 +20,9 @@
#include <chrono>
#include <sstream>
#if __cplusplus > 201103L // C++14
using namespace std::chrono_literals;
#endif
namespace android {
namespace base {