diff options
Diffstat (limited to 'include/android/sharedmem_jni.h')
-rw-r--r-- | include/android/sharedmem_jni.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/android/sharedmem_jni.h b/include/android/sharedmem_jni.h index bbac785a33..13e56e6f09 100644 --- a/include/android/sharedmem_jni.h +++ b/include/android/sharedmem_jni.h @@ -52,6 +52,8 @@ extern "C" { #endif +#if __ANDROID_API__ >= 27 + /** * Returns a dup'd FD from the given Java android.os.SharedMemory object. The returned file * descriptor has all the same properties & capabilities as the FD returned from @@ -70,6 +72,8 @@ extern "C" { */ int ASharedMemory_dupFromJava(JNIEnv* env, jobject sharedMemory) __INTRODUCED_IN(27); +#endif // __ANDROID_API__ >= 27 + #ifdef __cplusplus }; #endif |