1Description: Turn #error into exceptions 2 So the library can be built on non-Linux platforms too, although can't 3 guarauntee its functionality regarding that piece of code. 4--- a/base/file.cpp 5+++ b/base/file.cpp 6@@ -422,7 +422,8 @@ 7 path[PATH_MAX - 1] = 0; 8 return path; 9 #else 10-#error unknown OS 11+#include <stdexcept> 12+ throw std::runtime_error(std::string("Unknown OS!")); 13 #endif 14 } 15 16