Commit 225f9e3d authored by Simon Morlat's avatar Simon Morlat

fix for belle-sip version on Android

parent 35df0202
......@@ -26,7 +26,7 @@ LOCAL_MODULE := libbellesip
LOCAL_CFLAGS += \
-DHAVE_CONFIG_H \
-DPACKAGE_VERSION=$(BELLESIP_VERSION)
-DBELLESIP_VERSION=\"$(BELLESIP_VERSION)\"
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../../externals/antlr3/runtime/C/include \
......
......@@ -79,7 +79,7 @@
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.0.1"
//#define PACKAGE_VERSION "0.0.1"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
......
......@@ -189,7 +189,11 @@ void belle_sip_stack_set_dns_user_hosts_file(belle_sip_stack_t *stack, const cha
}
const char* belle_sip_version_to_string() {
#ifdef BELLESIP_VERSION
return BELLESIP_VERSION;
#else
return PACKAGE_VERSION;
#endif
}
int belle_sip_stack_get_inactive_transport_timeout(const belle_sip_stack_t *stack){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment