diff options
| author | 2013-05-23 13:44:08 -0700 | |
|---|---|---|
| committer | 2013-05-23 13:44:08 -0700 | |
| commit | d837969640efbc97eda2034c7811dda807d4174f (patch) | |
| tree | d34fe7ee23c42ce85e20a47ea0c0704db8ab9ed2 | |
| parent | 80d7fd86e05e6f14dffc9f0c9bf176a7c8680f8c (diff) | |
Make trace macros slightly more robust
Change-Id: I9544eb7b27fc1a971cabadd8d5b4b4b80678febf
| -rw-r--r-- | include/utils/Trace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/utils/Trace.h b/include/utils/Trace.h index 49578c47df..6ee343d79a 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 <fcntl.h> #include <stdint.h> #include <stdio.h> @@ -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 |