Commit 61aa1f46 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 2

Forgot to fix the guard for String.cpp

Summary:9ab69bc7 removed `__APPLE__` around the strndup definition
because it is defined on modern OSX.  But there was another reference
in String.cpp. Fixing that.

Reviewed By: yfeldblum

Differential Revision: D3186360

fb-gh-sync-id: 709c3b93cd22945e2237412637929df1979526c1
fbshipit-source-id: 709c3b93cd22945e2237412637929df1979526c1
parent 8d5c32ba
...@@ -27,7 +27,7 @@ extern "C" void* memrchr(const void* s, int c, size_t n) { ...@@ -27,7 +27,7 @@ extern "C" void* memrchr(const void* s, int c, size_t n) {
} }
#endif #endif
#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__) #if defined(_WIN32) || defined(__FreeBSD__)
extern "C" char* strndup(const char* a, size_t len) { extern "C" char* strndup(const char* a, size_t len) {
auto neededLen = strlen(a); auto neededLen = strlen(a);
if (neededLen > len) { if (neededLen > len) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment