From 1628eb1d43008c52b00ec98d10c4fd9e8b6fc7c5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 6 Aug 2014 10:47:33 -0700 Subject: [PATCH] Explain how wcswcs ended up in ndk_cruft.cpp. Change-Id: Ie45148095b2d5c3896c0df623d5d06a700c33c70 --- libc/bionic/ndk_cruft.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index e3e640a53..0c7201986 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -225,6 +225,7 @@ extern "C" int tkill(pid_t tid, int sig) { return syscall(__NR_tkill, tid, sig); } +// This was removed from POSIX 2008. extern "C" wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) { return wcsstr(haystack, needle); } @@ -267,7 +268,7 @@ extern "C" int getdtablesize() { return r.rlim_cur; } -// Only used by ftime, which was removed from POSIX. +// Only used by ftime, which was removed from POSIX 2008. struct timeb { time_t time; unsigned short millitm;