blob: 4bf69e6e6f3ca56bef30d6412dfd461be3731298 (
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
|
--- third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc.orig 2023-11-03 10:09:45 UTC
+++ third_party/maldoca/src/maldoca/base/get_runfiles_dir.cc
@@ -25,11 +25,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
@@ -51,8 +46,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};
@@ -98,8 +91,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) {
|