summaryrefslogtreecommitdiffstats
path: root/osdep/strnlen.h
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2018-07-21 16:39:11 +0800
committersfan5 <sfan5@live.de>2018-08-20 17:16:22 +0200
commitd4bbfb8453f2161fd21e6f3c00023edf43cc88fc (patch)
treecf08e1c64d498892e5a8cf129064d8ab78781531 /osdep/strnlen.h
parentd48786f68264ed23f8c3aa847e672a24d1cf4944 (diff)
downloadmpv-d4bbfb8453f2161fd21e6f3c00023edf43cc88fc.tar.bz2
mpv-d4bbfb8453f2161fd21e6f3c00023edf43cc88fc.tar.xz
osdep: make use of HAVE_ANDROID
Diffstat (limited to 'osdep/strnlen.h')
-rw-r--r--osdep/strnlen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep/strnlen.h b/osdep/strnlen.h
index 0a971d0ab0..e66932a89a 100644
--- a/osdep/strnlen.h
+++ b/osdep/strnlen.h
@@ -20,7 +20,9 @@
#ifndef MP_OSDEP_STRNLEN
#define MP_OSDEP_STRNLEN
-#ifdef __ANDROID__
+#include "config.h"
+
+#if HAVE_ANDROID
// strnlen is broken on current android ndk, see https://code.google.com/p/android/issues/detail?id=74741
#include "osdep/android/strnlen.h"
#define strnlen freebsd_strnlen