mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-17 04:49:46 +00:00
Merge pull request #833 from 0xbc/fix_cstool_build_vs2012
Fix build under VS2012 (i.e. MSC_VER = 1700)
This commit is contained in:
commit
b7bee9fa2e
@ -1,6 +1,4 @@
|
||||
/* Tang Yuhang <tyh000011112222@gmail.com> 2016 */
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
@ -90,6 +90,11 @@ typedef unsigned long long uint64_t;
|
||||
#define PRIX32 "X"
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1700
|
||||
// redefine functions from inttypes.h used in cstool
|
||||
#define strtoull _strtoui64
|
||||
#endif
|
||||
|
||||
#define PRId64 __PRI_64_LENGTH_MODIFIER__ "d"
|
||||
#define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i"
|
||||
#define PRIo64 __PRI_64_LENGTH_MODIFIER__ "o"
|
||||
|
Loading…
x
Reference in New Issue
Block a user