From 0b92d9ea15368241408b7210699698997d6f63a9 Mon Sep 17 00:00:00 2001 From: Brian Croom and Sam Coward Date: Thu, 31 Mar 2016 17:53:11 -0400 Subject: [PATCH] Only import custom matchers when building as Objective-C++ --- Source/Headers/Public/Matchers/CedarMatchers.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Headers/Public/Matchers/CedarMatchers.h b/Source/Headers/Public/Matchers/CedarMatchers.h index 2f8f6ef7..790850f4 100644 --- a/Source/Headers/Public/Matchers/CedarMatchers.h +++ b/Source/Headers/Public/Matchers/CedarMatchers.h @@ -41,6 +41,8 @@ #import "Exist.h" -#ifdef CEDAR_CUSTOM_MATCHERS -#import CEDAR_CUSTOM_MATCHERS -#endif +#ifdef __cplusplus + #ifdef CEDAR_CUSTOM_MATCHERS + #import CEDAR_CUSTOM_MATCHERS + #endif +#endif // __cplusplus