From d837969640efbc97eda2034c7811dda807d4174f Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Thu, 23 May 2013 13:44:08 -0700 Subject: [PATCH] Make trace macros slightly more robust Change-Id: I9544eb7b27fc1a971cabadd8d5b4b4b80678febf --- include/utils/Trace.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/utils/Trace.h b/include/utils/Trace.h index 49578c47d..6ee343d79 100644 --- a/include/utils/Trace.h +++ b/include/utils/Trace.h @@ -17,6 +17,8 @@ #ifndef ANDROID_TRACE_H #define ANDROID_TRACE_H +#ifdef HAVE_ANDROID_OS + #include #include #include @@ -57,4 +59,11 @@ private: }; // namespace android +#else // HAVE_ANDROID_OS + +#define ATRACE_NAME(...) +#define ATRACE_CALL() + +#endif // HAVE_ANDROID_OS + #endif // ANDROID_TRACE_H