Skip to content
Snippets Groups Projects
Commit 26423a77 authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files

del include/keystone/platform.h

parent 368893f6
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,7 @@ extern "C" {
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "platform.h"
#include <stdbool.h>
#ifdef _MSC_VER
#pragma warning(disable:4201)
......
/* Keystone Assembler Engine */
/* By Axel Souchet & Nguyen Anh Quynh, 2014 */
// handle C99 issue (for pre-2013 VisualStudio)
#ifndef KEYSTONE_PLATFORM_H
#define KEYSTONE_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 <stdbool.h>
#endif
#else // not MSVC -> C99 is supported
#include <stdbool.h>
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment