Add Availability.h include to fix macOS SDK instrinsics (#1175)

This commit is contained in:
vit9696 2018-06-15 00:12:26 +03:00 committed by Nguyen Anh Quynh
parent 856b207010
commit 7723175e80
8 changed files with 14 additions and 0 deletions

View File

@ -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>

View File

@ -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

View File

@ -23,6 +23,7 @@
#endif
#include <platform.h>
#if defined(CAPSTONE_HAS_OSXKERNEL)
#include <Availability.h>
#include <libkern/libkern.h>
#else
#include <stdio.h>

View File

@ -19,6 +19,10 @@
#ifdef CAPSTONE_HAS_X86
#if defined(CAPSTONE_HAS_OSXKERNEL)
#include <Availability.h>
#endif
#include <string.h>
#include "../../cs_priv.h"

View File

@ -22,6 +22,7 @@
#endif
#include <platform.h>
#if defined(CAPSTONE_HAS_OSXKERNEL)
#include <Availability.h>
#include <libkern/libkern.h>
#else
#include <stdio.h>

View File

@ -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
View File

@ -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>

View File

@ -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 <stdlib.h>