OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.57k stars 1.15k forks source link

<stdlib.h> header not included when it's needed #629

Closed IvyCons closed 3 years ago

IvyCons commented 3 years ago

This error stopped the making process: /Users/libfreenect/examples/micview.c:189:31: error: implicitly declaring library function 'malloc' with type 'void (unsigned long)' [-Werror,-Wimplicit-function-declaration] state.buffers[0] = (int32_t)malloc(state.max_samples * sizeof(i...

I added #include to the file to resolve it.