Skip to content

Commit cc9f31e

Browse files
[flac] add patch for Android < 21
1 parent 7d810e3 commit cc9f31e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

conan_patches/flac/conandata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
patches:
2+
"1.4.2":
3+
- patch_file: "patches/android-pre-21.diff"
4+
patch_description: "https://github.com/android/ndk/issues/1108"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/src/flac/utils.c
2+
+++ b/src/flac/utils.c
3+
@@ -200,7 +200,7 @@ size_t strlen_console(const char *text)
4+
{
5+
#ifdef _WIN32
6+
return strlen_utf8(text);
7+
-#elif defined(__DJGPP__) /* workaround for DJGPP missing wcswidth() */
8+
+#elif defined(__DJGPP__) || (defined(__ANDROID_API__) && __ANDROID_API__ < 21)
9+
return strlen(text);
10+
#else
11+
size_t len;

0 commit comments

Comments
 (0)