From 1f9dc8b1bf48073405f8663b6833bdd4be0ecbe9 Mon Sep 17 00:00:00 2001 From: "haitao.feng@intel.com" Date: Tue, 30 Jul 2013 01:01:04 +0000 Subject: [PATCH] This patch is to support Vtune on Android platform. The Vtune API provides the support for Android platform. So we fix the compilation issue and it works on Android platform. R=danno@chromium.org Review URL: https://codereview.chromium.org/20688002 Patch from Chunyang Dai . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15942 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/third_party/vtune/vtune-jit.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc index 0f35290..93de7ef 100644 --- a/src/third_party/vtune/vtune-jit.cc +++ b/src/third_party/vtune/vtune-jit.cc @@ -64,10 +64,15 @@ using namespace std; // To avoid GCC 4.4 compilation warning about hash_map being deprecated. #define OLD_DEPRECATED __DEPRECATED #undef __DEPRECATED +#if defined (ANDROID) +#include +using namespace std; +#else #include -#define __DEPRECATED OLD_DEPRECATED using namespace __gnu_cxx; #endif +#define __DEPRECATED OLD_DEPRECATED +#endif #include -- 2.7.4