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 0c4473230a..aa24995cae 100644 --- a/include/android/trace.h +++ b/include/android/trace.h @@ -39,6 +39,8 @@ extern "C" { #endif +#if __ANDROID_API__ >= 23 + /** * Returns true if tracing is enabled. Use this to avoid expensive computation only necessary * when tracing is enabled. @@ -69,6 +71,8 @@ void ATrace_beginSection(const char* sectionName) __INTRODUCED_IN(23); */ void ATrace_endSection() __INTRODUCED_IN(23); +#endif /* __ANDROID_API__ >= 23 */ + #ifdef __cplusplus }; #endif |