Skip to content

Commit e903a8b

Browse files
authored
fix(constants): Remove warnings for LP_NOT_TV (#134) E2-1133
1 parent a680a52 commit e903a8b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Leanplum-SDK/Classes/Constants.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
#define IOS_6_SUPPORTED defined(_ARM_ARCH_7) || defined(__i386__) || defined(__LP64__)
2929

3030
#ifndef LP_NOT_TV
31-
#define LP_NOT_TV (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
31+
#if (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
32+
#define LP_NOT_TV 1
33+
#else
34+
#define LP_NOT_TV 0
35+
#endif
3236
#endif
3337

3438
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
#import "LPInbox.h"
2727

2828
#ifndef LP_NOT_TV
29-
#define LP_NOT_TV (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
29+
#if (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
30+
#define LP_NOT_TV 1
31+
#else
32+
#define LP_NOT_TV 0
33+
#endif
3034
#endif
3135

3236
#define _LP_DEFINE_HELPER(name,val,type) LPVar* name; \

0 commit comments

Comments
 (0)