commit | bcf09f440d4835a10fb817f114556939fa63d73b | [log] [tgz] |
---|---|---|
author | reverser <[email protected]> | Thu Apr 09 18:28:19 2015 +0100 |
committer | Nguyen Anh Quynh <[email protected]> | Fri Apr 10 23:28:12 2015 +0800 |
tree | 0316a548c8da992ea184b9661f123dec415e726b | |
parent | 0915ecc4b26da875d9b50c66d1d4be34c8bfb61c [diff] [blame] |
Add support to embed Capstone into OS X kernel extensions.
diff --git a/cs.c b/cs.c index 66013b6..074e8b6 100644 --- a/cs.c +++ b/cs.c
@@ -3,9 +3,14 @@ #if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64) #pragma warning(disable:4996) #endif +#if defined(CAPSTONE_HAS_OSXKERNEL) +#include <libkern/libkern.h> +#else #include <stddef.h> #include <stdio.h> #include <stdlib.h> +#endif + #include <string.h> #include <capstone.h>