Skip to content

Commit

Permalink
skip stdint.h when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
tandasat committed Apr 11, 2016
1 parent 3c49d92 commit 64e56f4
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

#ifdef _MSC_VER
Expand Down
3 changes: 3 additions & 0 deletions include/arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

#ifdef _MSC_VER
Expand Down
3 changes: 3 additions & 0 deletions include/capstone.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include <stdarg.h>

#if defined(CAPSTONE_HAS_OSXKERNEL)
Expand Down
3 changes: 3 additions & 0 deletions include/mips.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

// GCC MIPS toolchain has a default macro called "mips" which breaks
Expand Down
3 changes: 3 additions & 0 deletions include/ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

#ifdef _MSC_VER
Expand Down
3 changes: 3 additions & 0 deletions include/sparc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

// GCC SPARC toolchain has a default macro called "sparc" which breaks
Expand Down
3 changes: 3 additions & 0 deletions include/systemz.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

#ifdef _MSC_VER
Expand Down
2 changes: 2 additions & 0 deletions include/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

// Calculate relative address for X86-64, given cs_insn structure
#define X86_REL_ADDR(insn) (insn.address + insn.size + insn.detail->x86.disp)
Expand Down
3 changes: 3 additions & 0 deletions include/xcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
extern "C" {
#endif

#if !defined(_MSC_VER) || !defined(_KERNEL_MODE)
#include <stdint.h>
#endif

#include "platform.h"

#ifdef _MSC_VER
Expand Down

0 comments on commit 64e56f4

Please sign in to comment.