Skip to content

Commit b66ab58

Browse files
committed
Correctly select platform, and include file with those defines
1 parent 78478e2 commit b66ab58

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

cocos2d/CCPackageHelper.m

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
#import <MacTypes.h>
22
#import "CCPackageHelper.h"
33
#import "CCFileUtils.h"
4+
#import "ccMacros.h"
45

56

67
@implementation CCPackageHelper
78

89
+ (NSString *)currentOS
910
{
10-
#ifdef __CC_PLATFORM_IOS
11-
return @"iOS";
12-
13-
#elif defined(__CC_PLATFORM_MAC)
14-
return @"Mac";
15-
16-
#elif defined(__CC_PLATFORM_ANDROID)
11+
#if __CC_PLATFORM_ANDROID
1712
return @"Android";
18-
19-
#endif
13+
#elif __CC_PLATFORM_MAC
14+
return @"Mac";
15+
#else
2016
return @"iOS";
17+
#endif
2118
}
2219

2320
+ (NSString *)ccFileUtilsSuffixToResolution:(NSString *)suffix

0 commit comments

Comments
 (0)