crashpad: update for new OS macros

This commit is contained in:
itsmattkc
2022-05-11 10:32:02 -07:00
parent 1ce495d299
commit 490bad990a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
#include "crashpadutils.h"
#include "filefunctions.h"
#ifdef OS_WIN
#ifdef BUILDFLAG(IS_WIN)
#include <Windows.h>
#endif
+3 -3
View File
@@ -24,17 +24,17 @@
#include <client/crashpad_client.h>
// Copied from base::FilePath to match its macro
#if defined(OS_POSIX)
#if BUILDFLAG(IS_POSIX)
// On most platforms, native pathnames are char arrays, and the encoding
// may or may not be specified. On Mac OS X, native pathnames are encoded
// in UTF-8.
#define QSTRING_TO_BASE_STRING(x) x.toStdString()
#define BASE_STRING_TO_QSTRING(x) QString::fromStdString(x)
#elif defined(OS_WIN)
#elif BUILDFLAG(IS_WIN)
// On Windows, for Unicode-aware applications, native pathnames are wchar_t
// arrays encoded in UTF-16.
#define QSTRING_TO_BASE_STRING(x) x.toStdWString()
#define BASE_STRING_TO_QSTRING(x) QString::fromStdWString(x)
#endif // OS_WIN
#endif // BUILDFLAG(IS_WIN)
#endif // CRASHPADUTILS_H