Index: webrtc/base/logging.h |
diff --git a/webrtc/base/logging.h b/webrtc/base/logging.h |
index 8c7b3f70e5284a5c0a7b76f69ab5e05ac089a7a8..886b5d88f70c9c899f26d07188007627911ffb7e 100644 |
--- a/webrtc/base/logging.h |
+++ b/webrtc/base/logging.h |
@@ -51,6 +51,10 @@ |
#include <string> |
#include <utility> |
+#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
+#include <CoreServices/CoreServices.h> |
+#endif |
+ |
#include "webrtc/base/basictypes.h" |
#include "webrtc/base/constructormagic.h" |
#include "webrtc/base/thread_annotations.h" |
@@ -80,6 +84,11 @@ struct ConstantLabel { int value; const char * label; }; |
const char* FindLabel(int value, const ConstantLabel entries[]); |
std::string ErrorName(int err, const ConstantLabel* err_table); |
+#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
+// Returns a UTF8 description from an OS X Status error. |
+std::string DescriptionFromOSStatus(OSStatus err); |
+#endif |
+ |
////////////////////////////////////////////////////////////////////// |
// Note that the non-standard LoggingSeverity aliases exist because they are |