mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 13:50:40 +01:00

This CL removes the need of having rtc_base:rtc_base_approved_generic and rtc_base:rtc_base_approved_objc since it removes the _objc build target by moving the declaration of rtc::DescriptionFromOSStatus into rtc_base/logging_mac.h in order to have a new target rtc_base:logging_mac on which rtc_base:logging can depend on. The target rtc_base:rtc_base_approved_generic will be removed in a follow up CL. Bug: webrtc:9838 Change-Id: Id93ac7bced213128e7d654694ff15337c26dab62 Reviewed-on: https://webrtc-review.googlesource.com/c/104802 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25085}
28 lines
821 B
C++
28 lines
821 B
C++
/*
|
|
* Copyright 2018 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
#ifndef RTC_BASE_LOGGING_MAC_H_
|
|
#define RTC_BASE_LOGGING_MAC_H_
|
|
|
|
#if !defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
|
|
#error "Only include this header in macOS builds"
|
|
#endif
|
|
|
|
#include <CoreServices/CoreServices.h>
|
|
|
|
#include <string>
|
|
|
|
namespace rtc {
|
|
|
|
// Returns a UTF8 description from an OS X Status error.
|
|
std::string DescriptionFromOSStatus(OSStatus err);
|
|
|
|
} // namespace rtc
|
|
|
|
#endif // RTC_BASE_LOGGING_MAC_H_
|