mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 14:35:39 +01:00
Fix some more Win32 compat issues in processor code
R=mark at https://breakpad.appspot.com/535003/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1122 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
aeffe1056f
commit
93a48343ee
@ -62,6 +62,7 @@
|
||||
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef __int32 int32_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#endif
|
||||
|
@ -54,6 +54,11 @@ using std::make_pair;
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strtok_r strtok_s
|
||||
#define strtoull _strtoui64
|
||||
#endif
|
||||
|
||||
static const char *kWhitespace = " \r\n";
|
||||
|
||||
BasicSourceLineResolver::BasicSourceLineResolver() :
|
||||
|
@ -43,6 +43,10 @@
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strtok_r strtok_s
|
||||
#endif
|
||||
|
||||
template<typename V>
|
||||
bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> ®isters,
|
||||
const MemoryRegion &memory,
|
||||
|
@ -37,15 +37,13 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#if _MSC_VER < 1600
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
#define PRIx64 "llx"
|
||||
#define PRIx32 "lx"
|
||||
#define snprintf _snprintf
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "google_breakpad/common/breakpad_types.h"
|
||||
#include "google_breakpad/processor/source_line_resolver_base.h"
|
||||
#include "google_breakpad/processor/stack_frame.h"
|
||||
#include "processor/cfi_frame_info.h"
|
||||
|
@ -36,6 +36,10 @@
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strtok_r strtok_s
|
||||
#endif
|
||||
|
||||
using std::vector;
|
||||
|
||||
bool Tokenize(char *line,
|
||||
|
@ -51,6 +51,10 @@
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strtoull _strtoui64
|
||||
#endif
|
||||
|
||||
struct WindowsFrameInfo {
|
||||
public:
|
||||
enum Validity {
|
||||
|
Loading…
Reference in New Issue
Block a user