projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d5c32b
)
Forgot to fix the guard for String.cpp
author
Michael Lee
<mzlee@fb.com>
Fri, 15 Apr 2016 22:16:46 +0000
(15:16 -0700)
committer
Facebook Github Bot 2
<facebook-github-bot-2-bot@fb.com>
Fri, 15 Apr 2016 22:20:28 +0000
(15:20 -0700)
Summary:
9ab69bc
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
folly/portability/String.cpp
patch
|
blob
|
history
diff --git
a/folly/portability/String.cpp
b/folly/portability/String.cpp
index 48ae5124d9a0aec67ed06dbace6ebe24d93a4619..95a0e1d23ad21c63404e2406b96252cee3d26820 100755
(executable)
--- a/
folly/portability/String.cpp
+++ b/
folly/portability/String.cpp
@@
-27,7
+27,7
@@
extern "C" void* memrchr(const void* s, int c, size_t n) {
}
#endif
-#if defined(_WIN32) || defined(__
APPLE__) || defined(__
FreeBSD__)
+#if defined(_WIN32) || defined(__FreeBSD__)
extern "C" char* strndup(const char* a, size_t len) {
auto neededLen = strlen(a);
if (neededLen > len) {