summaryrefslogtreecommitdiffstats
path: root/base/include/android-base
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-02-05 07:41:31 -0800
committerMark Salyzyn <salyzyn@google.com>2018-02-05 09:33:10 -0800
commit0c071c9de7aa40301cfc945f08d1783f2831ee5c (patch)
treee5182c884c4b4e1afe155556ab2c0a507e5faf76 /base/include/android-base
parent7c271bdc3b240779ad78ab379ae98925785fac70 (diff)
downloadsystem_core-0c071c9de7aa40301cfc945f08d1783f2831ee5c.tar.gz
system_core-0c071c9de7aa40301cfc945f08d1783f2831ee5c.tar.bz2
system_core-0c071c9de7aa40301cfc945f08d1783f2831ee5c.zip
base: adb.exe build error
Windows build of adb is broken because of the lack of std::chrono_literals and for an implementation of android::boot_clock::now(). Test: make -j vts Bug: 72941624 Change-Id: Ie65fed098633eb45a94ea553de6903f8d55fc5b2
Diffstat (limited to 'base/include/android-base')
-rw-r--r--base/include/android-base/chrono_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/include/android-base/chrono_utils.h b/base/include/android-base/chrono_utils.h
index 7679d4c94..c3396ee2f 100644
--- a/base/include/android-base/chrono_utils.h
+++ b/base/include/android-base/chrono_utils.h
@@ -20,7 +20,9 @@
#include <chrono>
#include <sstream>
+#if __cplusplus > 201103L // C++14
using namespace std::chrono_literals;
+#endif
namespace android {
namespace base {