From c45f791dd28dd5e174badd486a2b516ac7205e4b Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 30 Apr 2016 08:41:12 +0800 Subject: [PATCH] delete include/unicorn/platform.h --- include/unicorn/m68k.h | 1 - include/unicorn/platform.h | 28 ---------------------------- include/unicorn/sparc.h | 1 - include/unicorn/unicorn.h | 3 +-- 4 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 include/unicorn/platform.h diff --git a/include/unicorn/m68k.h b/include/unicorn/m68k.h index 80350c13..201a4e78 100644 --- a/include/unicorn/m68k.h +++ b/include/unicorn/m68k.h @@ -9,7 +9,6 @@ extern "C" { #endif #include -#include "platform.h" #ifdef _MSC_VER #pragma warning(disable:4201) diff --git a/include/unicorn/platform.h b/include/unicorn/platform.h deleted file mode 100644 index c1e80623..00000000 --- a/include/unicorn/platform.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Unicorn Emulator Engine */ -/* By Axel Souchet & Nguyen Anh Quynh, 2014 */ - -// handle C99 issue (for pre-2013 VisualStudio) -#ifndef UNICORN_PLATFORM_H -#define UNICORN_PLATFORM_H - -#if !defined(__MINGW32__) && !defined(__MINGW64__) && (defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)) -// MSVC - -// stdbool.h -#if (_MSC_VER < 1800) -#ifndef __cplusplus -typedef unsigned char bool; -#define false 0 -#define true 1 -#endif - -#else -// VisualStudio 2013+ -> C99 is supported -#include -#endif - -#else // not MSVC -> C99 is supported -#include -#endif - -#endif diff --git a/include/unicorn/sparc.h b/include/unicorn/sparc.h index 353dbb34..57a483b7 100644 --- a/include/unicorn/sparc.h +++ b/include/unicorn/sparc.h @@ -9,7 +9,6 @@ extern "C" { #endif #include -#include "platform.h" // GCC SPARC toolchain has a default macro called "sparc" which breaks // compilation diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 0eb5390e..b5d901f9 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -9,6 +9,7 @@ extern "C" { #endif #include +#include #include #if defined(UNICORN_HAS_OSXKERNEL) #include @@ -17,8 +18,6 @@ extern "C" { #include #endif -#include "platform.h" - struct uc_struct; typedef struct uc_struct uc_engine;