move prototype of strcasecmp for MSVC into utils.h, and remove platform.h

v2
Nguyen Anh Quynh 11 years ago
parent e079f10a80
commit e76abf47e1
  1. 2
      include/capstone.h
  2. 19
      include/platform.h
  3. 10
      utils.h

@ -14,8 +14,6 @@ extern "C" {
#include <stdbool.h>
#include <stdlib.h>
#include "platform.h"
#ifdef _MSC_VER
#pragma warning(disable:4201)
#pragma warning(disable:4100)

@ -1,19 +0,0 @@
/* Capstone Disassembly Engine */
/* By Axel Souchet & Nguyen Anh Quynh, 2014 */
// prototypes for MSVC
#ifndef CAPSTONE_PLATFORM_H
#define CAPSTONE_PLATFORM_H
#if !defined(__MINGW32__) && !defined(__MINGW64__) // this is not MingW
#if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)
// string.h
#define strcasecmp _stricmp
#endif // MSVC
#endif // not MingW
#endif

@ -7,6 +7,16 @@
#include "include/capstone.h"
#include "cs_priv.h"
// strcasecmp for MSVC
#if !defined(__MINGW32__) && !defined(__MINGW64__) // this is not MingW
#if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)
// string.h
#define strcasecmp _stricmp
#endif // MSVC
#endif // not MingW
// threshold number, so above this number will be printed in hexa mode
#define HEX_THRESHOLD 9

Loading…
Cancel
Save