-Wmissing-declarations \
-Wredundant-decls \
-Wcast-align \
+ -Werror \
# Disable warnings enabled by Android but not enabled in autotools build
BLUEZ_COMMON_CFLAGS += -Wno-pointer-arith \
-Wno-missing-field-initializers \
+ -Wno-maybe-uninitialized \
-Wno-unused-parameter \
#
}
static void pin_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name,
+#if ANDROID_VERSION >= PLATFORM_VER(6, 0, 1)
+ uint32_t cod, bool u)
+#else
uint32_t cod)
+#endif
{
/* Store for command completion */
bt_bdaddr_t2str(remote_bd_addr, last_remote_addr);
{
RETURN_IF_NULL(if_bluetooth);
+#if ANDROID_VERSION >= PLATFORM_VER(6, 0, 1)
+ EXEC(if_bluetooth->enable, false);
+#else
EXEC(if_bluetooth->enable);
+#endif
}
#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
static void read_energy_info_p(int argc, const char **argv)
return res.tv_sec * 1000000ll + res.tv_nsec / 1000ll;
}
-#if defined(ANDROID)
+#if ANDROID_VERSION < PLATFORM_VER(6, 0, 0)
/*
* Bionic does not have clock_nanosleep() prototype in time.h even though
* it provides its implementation.