summaryrefslogtreecommitdiff
path: root/include/utils/Trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/Trace.h')
-rw-r--r--include/utils/Trace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/utils/Trace.h b/include/utils/Trace.h
index 6ee343d79..6ba68f61c 100644
--- a/include/utils/Trace.h
+++ b/include/utils/Trace.h
@@ -17,7 +17,7 @@
#ifndef ANDROID_TRACE_H
#define ANDROID_TRACE_H
-#ifdef HAVE_ANDROID_OS
+#if defined(__ANDROID__)
#include <fcntl.h>
#include <stdint.h>
@@ -59,11 +59,11 @@ private:
}; // namespace android
-#else // HAVE_ANDROID_OS
+#else // !__ANDROID__
#define ATRACE_NAME(...)
#define ATRACE_CALL()
-#endif // HAVE_ANDROID_OS
+#endif // __ANDROID__
#endif // ANDROID_TRACE_H