blob: 70e732131ff117d10845c5a7f7a41dcf08d85ab6 [file] [log] [blame]
Andrew Geissler220dafd2023-10-04 10:18:08 -05001Upstream-Status: Pending
2
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05003Description: Turn #error into exceptions
4 So the library can be built on non-Linux platforms too, although can't
5 guarauntee its functionality regarding that piece of code.
6Forwarded: not-needed
7--- a/system/core/base/file.cpp
8+++ b/system/core/base/file.cpp
9@@ -422,7 +422,8 @@
10 path[PATH_MAX - 1] = 0;
11 return path;
12 #else
13-#error unknown OS
14+#include <stdexcept>
15+ throw std::runtime_error(std::string("Unknown OS!"));
16 #endif
17 }
18