Skip to content

Commit 3a987ca

Browse files
committed
Adding conditions in CCNoArc and CCSprite
1 parent 9f74b54 commit 3a987ca

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cocos2d/CCNoARC.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#import "CCRenderer_Private.h"
2+
3+
#if CC_EFFECTS
24
#import "CCEffect.h"
35
#import "CCEffectRenderer.h"
46
#import "CCEffect_Private.h"
7+
#endif
58

69
#if __CC_METAL_SUPPORTED_AND_ENABLED
710
#import "CCMetalSupport_Private.h"

cocos2d/CCSprite.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#import "CCProtocols.h"
3131

3232
#if CC_EFFECTS
33-
//#import "CCEffectRenderer.h"
34-
//#import "CCEffect_Private.h"
3533
@class CCEffectRenderer;
3634
#endif
3735

cocos2d/CCSprite.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
#import "Support/CGPointExtension.h"
3939
#import "Support/CCProfiling.h"
4040
#import "CCRenderer_Private.h"
41+
42+
#if CC_EFFECTS
4143
#import "CCEffect_Private.h"
4244
#import "CCEffectRenderer.h"
45+
#endif
4346

4447
#pragma mark -
4548
#pragma mark CCSprite

0 commit comments

Comments
 (0)