[vlc-devel] [RFC PATCH 1/2] include: add VLC_JNI_VERSION

Zhao Zhili quinkblack at foxmail.com
Thu Aug 2 08:20:37 CEST 2018


---
 include/vlc_common.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index c88503c..7e460be 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -518,6 +518,12 @@ typedef int ( * vlc_list_callback_t ) ( vlc_object_t *,      /* variable's objec
 #   include <os2.h>
 #endif
 
+#if defined(__ANDROID__)
+#   ifndef VLC_JNI_VERSION
+#       define VLC_JNI_VERSION JNI_VERSION_1_2
+#   endif
+#endif
+
 #include "vlc_tick.h"
 #include "vlc_threads.h"
 
-- 
2.9.5





More information about the vlc-devel mailing list