Browse Source

libandroid-support: Fix dangling extern C linkage in libintl.h

android-5
Fredrik Fornwall 10 years ago
parent
commit
fa85bc7b3e
  1. 2
      packages/libandroid-support/build.sh
  2. 6
      packages/libandroid-support/libintl.h.patch

2
packages/libandroid-support/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://developer.android.com/tools/sdk/ndk/index.html 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" 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. # 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_BUILD_IN_SRC=yes
TERMUX_PKG_ESSENTIAL=yes TERMUX_PKG_ESSENTIAL=yes

6
packages/libandroid-support/libintl.h.patch

@ -1,7 +1,7 @@
diff -N -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/libintl.h ./include/libintl.h 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 --- /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 +++ ./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 +#ifndef NDK_ANDROID_SUPPORT_LIBINTL_H
+#define 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. */ +/* 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); +char *bind_textdomain_codeset (const char *__domainname, const char *__codeset);
+ +
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NDK_ANDROID_SUPPORT_LIBINTL_H +#endif // NDK_ANDROID_SUPPORT_LIBINTL_H

Loading…
Cancel
Save