projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee8a51
)
`strndup` is defined on modern OSX
author
Michael Lee
<mzlee@fb.com>
Fri, 1 Apr 2016 16:32:29 +0000
(09:32 -0700)
committer
Facebook Github Bot 0
<facebook-github-bot-0-bot@fb.com>
Fri, 1 Apr 2016 16:35:24 +0000
(09:35 -0700)
Summary: `strndup` is defined on modern versions of OSX
Reviewed By: Orvid, grp
Differential Revision:
D3122635
fb-gh-sync-id:
678792765addf2fb226e835d3b7a67e155ed6dc5
fbshipit-source-id:
678792765addf2fb226e835d3b7a67e155ed6dc5
folly/portability/String.h
patch
|
blob
|
history
diff --git
a/folly/portability/String.h
b/folly/portability/String.h
index 0d235559c10aa2dd45d66834943f1425dfee6f2c..d9022cde8eb1f8cf83351077be08d9351f62f4d1 100755
(executable)
--- a/
folly/portability/String.h
+++ b/
folly/portability/String.h
@@
-25,7
+25,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);
#endif