mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 05:29:53 +00:00
Add Availability.h include to fix macOS SDK instrinsics
This commit is contained in:
parent
f7706942b5
commit
36d4585566
1
MCInst.c
1
MCInst.c
@ -2,6 +2,7 @@
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
|
||||
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#include <i386/limits.h>
|
||||
#else
|
||||
|
@ -28,6 +28,7 @@
|
||||
#endif
|
||||
#include <capstone/platform.h>
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#include <libkern/libkern.h>
|
||||
#else
|
||||
#include <stdio.h>
|
||||
|
@ -25,6 +25,11 @@
|
||||
#endif
|
||||
|
||||
#include <capstone/platform.h>
|
||||
|
||||
#if defined(CAPSTONE_HAS_OSXKERNEL)
|
||||
#include <Availability.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "../../cs_priv.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#endif
|
||||
#include <capstone/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>
|
||||
#ifndef CAPSTONE_HAS_OSXKERNEL
|
||||
#include <stdlib.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