include stdlib.h on macOS (#236)

Co-authored-by: Tian Jin <tjingrant@gmail.com>
This commit is contained in:
Masahiro H 2020-07-30 17:48:31 +09:00 committed by GitHub
parent 7a2bb1f2a3
commit 4db3edc025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#include <assert.h> #include <assert.h>
#ifdef __APPLE__
#include <stdlib.h>
#else
#include <malloc.h> #include <malloc.h>
#endif
#include <string.h> #include <string.h>
#include "RtMemRef.h" #include "RtMemRef.h"