facebook / folly

An open-source C++ library developed and used at Facebook.
https://groups.google.com/forum/?fromgroups#!forum/facebook-folly
Apache License 2.0
28.39k stars 5.56k forks source link

Malloc.h:27:12: error: unknown type name 'size_t' #385

Closed jmodrako closed 8 years ago

jmodrako commented 8 years ago

In file included from portability/Malloc.cpp:17: ./../folly/portability/Malloc.h:27:12: error: unknown type name 'size_t' extern "C" size_t malloc_usable_size(void* ptr);

Mac OSx - ElCapitan 10.11.4

Orvid commented 8 years ago

Ah, whoops, that would be my fault, fix incoming.

aayushkothari commented 8 years ago

@jmodrako Just add #include <stddef.h> to the beginning of ../third-party/folly/folly/portability/Malloc.h

jmodrako commented 8 years ago

OK, it fixes issue, but I have another, probably with retrolambda library.

https://github.com/facebook/redex/issues/33