Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request Unity-Technologies#12 from illwieckz/freebsd-header
Browse files Browse the repository at this point in the history
FreeBSD: fix malloc in crn_decomp single header file
  • Loading branch information
illwieckz authored Jun 16, 2019
2 parents 98c7429 + 2184478 commit 86585e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/crn_decomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <memory.h>
#elif defined(__APPLE__)
#include <malloc/malloc.h>
#elif defined(__FreeBSD__)
// <malloc.h> has been replaced by <stdlib.h>
#include <malloc_np.h> // for malloc_usable_size
#else
#include <malloc.h>
#endif
Expand Down

0 comments on commit 86585e5

Please sign in to comment.