Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cb99ea5 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent 03642ad8
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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