Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame^] | 1 | Upstream-Status: Pending |
| 2 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 3 | Description: 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. |
| 6 | Forwarded: 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 | |