exit (0);
}
+/* Return a number from 1 to 33 describing the version of Android
+ Emacs is running on.
+
+ This is different from __ANDROID_API__, as that describes the
+ minimum version of Android this build of Emacs will run on, and in
+ turn which APIs Emacs can safely use. */
+
+int
+android_get_current_api_level (void)
+{
+ return android_api_level;
+}
+
\f
#else /* ANDROID_STUBIFY */
extern void android_toggle_on_screen_keyboard (android_window, bool);
extern void android_window_updated (android_window, unsigned long);
extern _Noreturn void android_restart_emacs (void);
+extern int android_get_current_api_level (void);
\f
/* Make sure to pick the right Sans Serif font depending on what
version of Android the device is running. */
-#if HAVE_DECL_ANDROID_GET_DEVICE_API_LEVEL
- if (android_get_device_api_level () >= 15)
+ if (android_get_current_api_level () >= 15)
Vsfnt_default_family_alist
= list3 (Fcons (build_string ("Monospace"),
build_string ("Droid Sans Mono")),
Fcons (build_string ("Sans Serif"),
build_string ("Roboto")));
else
-#endif
Vsfnt_default_family_alist
= list3 (Fcons (build_string ("Monospace"),
build_string ("Droid Sans Mono")),