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:
parent
03642ad8b8
commit
1cb99ea59b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue