hrydgard / minitrace

Simple C/C++ library for producing JSON traces suitable for Chrome's built-in trace viewer (about:tracing).
MIT License
370 stars 63 forks source link

Fix linux build. #2

Closed stolk closed 6 years ago

stolk commented 6 years ago

To fix building for linux, I had to link the pthreads. Also, malloc() result needed to be cast. An int64_t was printed with %llu which I changed to %ld (Double check if this is still OK on 32b OS'es?)