Remove #ifdef __cplusplus guards

PiperOrigin-RevId: 504553878
This commit is contained in:
Nick Bourdakos
2023-01-25 07:14:44 -08:00
committed by Copybara-Service
parent 361af2691d
commit e2e702b68f
10 changed files with 2 additions and 20 deletions
@@ -44,6 +44,8 @@ objc_library(
"utils.h",
"wifi_lan.h",
],
# Prevent Objective-C++ headers from being pulled into swift.
aspect_hints = ["//tools/build_defs/swift:no_module"],
features = ["-layering_check"],
deps = [
":Platform_cc",
@@ -14,7 +14,6 @@
#ifndef THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLE_H_
#define THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLE_H_
#ifdef __cplusplus
#import <CoreBluetooth/CoreBluetooth.h>
#import <Foundation/Foundation.h>
@@ -204,5 +203,4 @@ class BleMedium : public api::ble_v2::BleMedium {
} // namespace apple
} // namespace nearby
#endif
#endif // THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLE_H_
@@ -14,7 +14,6 @@
#ifndef THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLUETOOTH_ADAPTER_H_
#define THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLUETOOTH_ADAPTER_H_
#ifdef __cplusplus
#include <string>
@@ -99,5 +98,4 @@ class BluetoothAdapter : public api::BluetoothAdapter {
} // namespace apple
} // namespace nearby
#endif
#endif // THIRD_PARTY_NEARBY_INTERNAL_PLATFORM_IMPLEMENTATION_APPLE_BLUETOOTH_ADAPTER_H_
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_LOG_MESSAGE_H_
#define PLATFORM_IMPL_APPLE_LOG_MESSAGE_H_
#ifdef __cplusplus
#ifdef NEARBY_SWIFTPM
#include <sstream>
@@ -51,5 +50,4 @@ class LogMessage : public api::LogMessage {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_LOG_MESSAGE_H_
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_MULTI_THREAD_EXECUTOR_H_
#define PLATFORM_IMPL_APPLE_MULTI_THREAD_EXECUTOR_H_
#ifdef __cplusplus
#import "internal/platform/implementation/apple/scheduled_executor.h"
#include "internal/platform/implementation/submittable_executor.h"
@@ -43,5 +42,4 @@ class MultiThreadExecutor : public api::SubmittableExecutor {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_MULTI_THREAD_EXECUTOR_H_
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_SCHEDULED_EXECUTOR_H_
#define PLATFORM_IMPL_APPLE_SCHEDULED_EXECUTOR_H_
#ifdef __cplusplus
#import <Foundation/Foundation.h>
@@ -63,5 +62,4 @@ class ScheduledExecutor : public api::ScheduledExecutor {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_SCHEDULED_EXECUTOR_H_
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_SINGLE_THREAD_EXECUTOR_H_
#define PLATFORM_IMPL_APPLE_SINGLE_THREAD_EXECUTOR_H_
#ifdef __cplusplus
#import "internal/platform/implementation/apple/multi_thread_executor.h"
@@ -30,5 +29,4 @@ class SingleThreadExecutor : public MultiThreadExecutor {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_SINGLE_THREAD_EXECUTOR_H_
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_TIMER_H_
#define PLATFORM_IMPL_APPLE_TIMER_H_
#ifdef __cplusplus
#include <utility>
@@ -39,5 +38,4 @@ class Timer : public api::Timer {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_TIMER_H_
@@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
#import <CoreBluetooth/CoreBluetooth.h>
#import <Foundation/Foundation.h>
@@ -72,5 +70,3 @@ absl::flat_hash_map<std::string, std::string> AbslHashMapFromObjCTxtRecords(
} // namespace nearby
NS_ASSUME_NONNULL_END
#endif
@@ -14,7 +14,6 @@
#ifndef PLATFORM_IMPL_APPLE_WIFI_LAN_H_
#define PLATFORM_IMPL_APPLE_WIFI_LAN_H_
#ifdef __cplusplus
#import <Foundation/Foundation.h>
#include <string>
@@ -201,5 +200,4 @@ class WifiLanMedium : public api::WifiLanMedium {
} // namespace apple
} // namespace nearby
#endif
#endif // PLATFORM_IMPL_APPLE_WIFI_LAN_H_