mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 07:20:33 +00:00
Add Availability.h include to fix macOS SDK instrinsics (#1175)
This commit is contained in:
parent
856b207010
commit
7723175e80
1
MCInst.c
1
MCInst.c
@ -2,6 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
@ -6,6 +6,7 @@
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#include <i386/limits.h>
|
||||
#else
|
||||
|
@ -23,6 +23,7 @@
|
||||
#endif
|
||||
#include <platform.h>
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
@ -19,6 +19,10 @@
|
||||
|
||||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "../../cs_priv.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#endif
|
||||
#include <platform.h>
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
@ -3,6 +3,10 @@
|
||||
|
||||
#ifdef CAPSTONE_HAS_X86
|
||||
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "X86Mapping.h"
|
||||
|
1
cs.c
1
cs.c
@ -5,6 +5,7 @@
|
||||
#pragma warning(disable:28719) // disable MSVC's warning on strcpy()
|
||||
#endif
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stddef.h>
|
||||
|
Loading…
Reference in New Issue
Block a user