tools: x64 fixes for msvc
This commit is contained in:
@ -31,7 +31,11 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef int ssize_t;
|
#ifdef _WIN64
|
||||||
|
typedef int64_t ssize_t;
|
||||||
|
#else
|
||||||
|
typedef int32_t ssize_t;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
/* input file shouldn't be any longer than this */
|
/* input file shouldn't be any longer than this */
|
||||||
#define MAX_XSVF_LENGTH 0x10000
|
#define MAX_XSVF_LENGTH 0x10000
|
||||||
|
@ -36,7 +36,11 @@ typedef int bool;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef int ssize_t;
|
#ifdef _WIN64
|
||||||
|
typedef int64_t ssize_t;
|
||||||
|
#else
|
||||||
|
typedef int32_t ssize_t;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* 8 Mbit flash */
|
/* 8 Mbit flash */
|
||||||
|
@ -43,7 +43,13 @@ typedef int bool;
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef int ssize_t;
|
|
||||||
|
#ifdef _WIN64
|
||||||
|
typedef int64_t ssize_t;
|
||||||
|
#else
|
||||||
|
typedef int32_t ssize_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define strtoull _strtoui64
|
#define strtoull _strtoui64
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user