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 52fa6009e4
commit 5e1b9282a0

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