summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libasap/asap.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-15 17:53:56 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-15 21:46:19 +0100
commit16d1788356e82c639302a884437341e039574822 (patch)
treeb075555d7162cc540235cb5b0fd85963e3cde5c0 /lib/rbcodec/codecs/libasap/asap.c
parentd984725cbf38d0a9e71c866ae61c48ad488373b4 (diff)
downloadrockbox-16d1788356e82c639302a884437341e039574822.tar.gz
rockbox-16d1788356e82c639302a884437341e039574822.zip
Fix codecs in simulator builds on Windows
The mingw linker uses strlen() in some cases, and codeclib.c redefines it, that leads to mingw runtime init to call into our strlen() and then ci->strlen() which of course crashes. Apply the same fix as for malloc and friends: rename the symbol. The codeclib.h include is necessary for normal builds. Change-Id: Ifa85901a3e4a31cc0e10b4b905df348a239d5c99
Diffstat (limited to 'lib/rbcodec/codecs/libasap/asap.c')
-rw-r--r--lib/rbcodec/codecs/libasap/asap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libasap/asap.c b/lib/rbcodec/codecs/libasap/asap.c
index a2c592fd7e..2290884f86 100644
--- a/lib/rbcodec/codecs/libasap/asap.c
+++ b/lib/rbcodec/codecs/libasap/asap.c
@@ -21,6 +21,7 @@
21 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */ 22 */
23 23
24#include "codeclib.h"
24#include "asap_internal.h" 25#include "asap_internal.h"
25 26
26static byte s_memory[65536]; 27static byte s_memory[65536];