blob: 012d631519991a14069b2e0d0be12e874ec9d546 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- src/3rdparty/chromium/third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc.orig 2022-02-07 13:39:41 UTC
+++ src/3rdparty/chromium/third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc
@@ -24,11 +24,6 @@
#error "__APPLE__ not supported."
#endif
-#if defined(__FreeBSD__)
-// TODO(#110) FreeBSD-specific headers.
-#error "__FreeBSD__ not supported."
-#endif
-
#if defined(_WIN32)
#include <windows.h>
#define PATH_MAX MAX_PATH
@@ -50,8 +45,6 @@ std::string GetExecutablePath() {
char exe_path[PATH_MAX] = {0};
#ifdef __APPLE__
#error "__APPLE__ not supported.";
-#elif defined(__FreeBSD__)
-#error "__FreeBSD__ not supported.";
#elif defined(_WIN32)
HMODULE hModule = GetModuleHandleW(NULL);
WCHAR wc_file_path[MAX_PATH] = {0};
@@ -97,8 +90,6 @@ std::string GetExecutablePath() {
absl::Status IsDirectory(const std::string& name) {
#ifdef __APPLE__
#error "__APPLE__ not supported.";
-#elif defined(__FreeBSD__)
-#error "__FreeBSD__ not supported.";
#else
struct stat sbuf;
if (stat(name.c_str(), &sbuf) != 0) {
|