libutils: Trace.h for everything but windows

libcutils has trace implemented for host. In order to increase code
portability, opening that up for libutils Trace.h usage as well.

Bug: 124524556
Test: use Trace.h on host glinux
Change-Id: Ia873f88e7436a18f6c0f761000bf697c68ffea17
This commit is contained in:
Steven Moreland 2019-09-17 16:08:09 -07:00
parent 03642ad8b8
commit 1cb99ea59b
1 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,12 @@
#ifndef ANDROID_TRACE_H
#define ANDROID_TRACE_H
#if defined(__ANDROID__)
#if defined(_WIN32)
#define ATRACE_NAME(...)
#define ATRACE_CALL()
#else // !_WIN32
#include <stdint.h>
@ -51,11 +56,6 @@ private:
} // namespace android
#else // !__ANDROID__
#define ATRACE_NAME(...)
#define ATRACE_CALL()
#endif // __ANDROID__
#endif // _WIN32
#endif // ANDROID_TRACE_H