libandroid-support: Fix dangling extern C linkage in libintl.h
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 13 Jul 2015 06:50:34 +0000 (02:50 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 13 Jul 2015 06:50:34 +0000 (02:50 -0400)
packages/libandroid-support/build.sh
packages/libandroid-support/libintl.h.patch

index 1efb9ae..65ecc43 100755 (executable)
@@ -1,7 +1,7 @@
 TERMUX_PKG_HOMEPAGE=https://developer.android.com/tools/sdk/ndk/index.html
 TERMUX_PKG_DESCRIPTION="Library extending the Android C library (Bionic) for additional multibyte, locale and math support"
 # Increase last digit each time a patch changes.
-TERMUX_PKG_VERSION=${TERMUX_NDK_VERSION}.3
+TERMUX_PKG_VERSION=${TERMUX_NDK_VERSION}.4
 TERMUX_PKG_BUILD_IN_SRC=yes
 TERMUX_PKG_ESSENTIAL=yes
 
index 1290993..4217265 100644 (file)
@@ -1,7 +1,7 @@
 diff -N -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/libintl.h ./include/libintl.h
 --- /home/fornwall/lib/android-ndk/sources/android/support/include/libintl.h   1969-12-31 19:00:00.000000000 -0500
 +++ ./include/libintl.h        2014-11-27 10:50:18.306215538 -0500
-@@ -0,0 +1,35 @@
+@@ -0,0 +1,39 @@
 +#ifndef NDK_ANDROID_SUPPORT_LIBINTL_H
 +#define NDK_ANDROID_SUPPORT_LIBINTL_H
 +
@@ -36,4 +36,8 @@ diff -N -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/lib
 +/* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned.  */
 +char *bind_textdomain_codeset (const char *__domainname, const char *__codeset);
 +
++#ifdef __cplusplus
++}
++#endif
++
 +#endif  // NDK_ANDROID_SUPPORT_LIBINTL_H