commit | e87cd78d4634396f2734c381f5ac77fd70e8858e | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Wed Feb 26 14:45:03 2014 +0100 |
committer | David 'Digit' Turner <digit@google.com> | Wed Feb 26 15:04:25 2014 +0100 |
tree | c77b93524500031539af93030b0fad2d67f62d34 | |
parent | da8c1d4d2f7fd11543f6333b987f945406b4d80f [diff] |
Fix Darwin build. OS X doesn't provide malloc_usable_size() but malloc_size() instead. Also include <malloc/malloc.h> instead of <malloc.h> on this platform. + Factor the detection/declaration of USE_MALLOC_USABLE_SIZE in a header to avoid repetitions. Change-Id: Id9a391f07b14a2459a3fe510c89ad52ba4d3a3fd