Skip to content

Commit 54e57c1

Browse files
committed
watchOS Support
1 parent 8aa9f27 commit 54e57c1

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

SDVersion-Demo/SDVersion/SDVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SDVersion.h
33
// SDVersion
44
//
5-
// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved.
5+
// Copyright (c) 2016 Sebastian Dobrincu. All rights reserved.
66
//
77

88
#ifndef SDVersion_h

SDVersion/SDVersion.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
// SDVersion.h
33
// SDVersion
44
//
5-
// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved.
5+
// Copyright (c) 2016 Sebastian Dobrincu. All rights reserved.
66
//
77

88
#ifndef SDVersion_h
99
#define SDVersion_h
1010

11-
#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE)
12-
#import "SDiOSVersion.h"
13-
#define SDVersion SDiOSVersion
14-
#else
15-
#import "SDMacVersion.h"
16-
#define SDVersion SDMacVersion
11+
#if TARGET_OS_IOS
12+
#import "SDiOSVersion.h"
13+
#define SDVersion SDiOSVersion
14+
#elif TARGET_OS_WATCH
15+
#import "SDwatchOSVersion.h"
16+
#define SDVersion SDwatchOSVersion
17+
#elif TARGET_OS_MAC
18+
#import "SDMacVersion.h"
19+
#define SDVersion SDMacVersion
1720
#endif
1821

1922
#endif

0 commit comments

Comments
 (0)