diff options
Diffstat (limited to 'include/android/trace.h')
-rw-r--r-- | include/android/trace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/android/trace.h b/include/android/trace.h index 9f59acfaba..4d57d4f369 100644 --- a/include/android/trace.h +++ b/include/android/trace.h @@ -37,6 +37,8 @@ extern "C" { #endif +#if __ANDROID_API__ >= 23 + /** * Returns true if tracing is enabled. Use this signal to avoid expensive computation only necessary * when tracing is enabled. @@ -61,6 +63,8 @@ void ATrace_beginSection(const char* sectionName) __INTRODUCED_IN(23); */ void ATrace_endSection() __INTRODUCED_IN(23); +#endif /* __ANDROID_API__ >= 23 */ + #ifdef __cplusplus }; #endif |