From 16d1788356e82c639302a884437341e039574822 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 15 Jan 2017 17:53:56 +0100 Subject: 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 --- lib/rbcodec/codecs/libasap/asap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbcodec/codecs/libasap') 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 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "codeclib.h" #include "asap_internal.h" static byte s_memory[65536]; -- cgit v1.2.3