Fix compilation from within a macOS kernel extension. #867

This commit is contained in:
vit9696 2017-03-08 14:40:22 +03:00 committed by Nguyen Anh Quynh
parent f8c82a9b01
commit a4de7e3257

View File

@ -4,8 +4,12 @@
#ifndef CS_UTILS_H
#define CS_UTILS_H
#if defined(CAPSTONE_HAS_OSXKERNEL)
#include <libkern/libkern.h>
#else
#include <stddef.h>
#include "include/capstone/capstone.h"
#endif
#include "cs_priv.h"
// threshold number, so above this number will be printed in hexa mode