Skip to content

Commit fa0bee4

Browse files
committed
The definition "MAC_OS_X_VERSION_MIN_REQUIRED" was not always properly defined because it was being referenced before the import's section.
1 parent 11a477e commit fa0bee4

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

GCD/GCDAsyncSocket.m

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@
88
// https://github.com/robbiehanson/CocoaAsyncSocket
99
//
1010

11+
#import "GCDAsyncSocket.h"
12+
13+
#if TARGET_OS_IPHONE
14+
#import <CFNetwork/CFNetwork.h>
15+
#endif
16+
17+
#import <arpa/inet.h>
18+
#import <fcntl.h>
19+
#import <ifaddrs.h>
20+
#import <netdb.h>
21+
#import <netinet/in.h>
22+
#import <net/if.h>
23+
#import <sys/socket.h>
24+
#import <sys/types.h>
25+
#import <sys/ioctl.h>
26+
#import <sys/poll.h>
27+
#import <sys/uio.h>
28+
#import <unistd.h>
29+
1130
#if ! __has_feature(objc_arc)
1231
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
1332
// For more information see: https://github.com/robbiehanson/CocoaAsyncSocket/wiki/ARC
@@ -39,25 +58,6 @@
3958

4059
#endif
4160

42-
#import "GCDAsyncSocket.h"
43-
44-
#if TARGET_OS_IPHONE
45-
#import <CFNetwork/CFNetwork.h>
46-
#endif
47-
48-
#import <arpa/inet.h>
49-
#import <fcntl.h>
50-
#import <ifaddrs.h>
51-
#import <netdb.h>
52-
#import <netinet/in.h>
53-
#import <net/if.h>
54-
#import <sys/socket.h>
55-
#import <sys/types.h>
56-
#import <sys/ioctl.h>
57-
#import <sys/poll.h>
58-
#import <sys/uio.h>
59-
#import <unistd.h>
60-
6161

6262
#if 0
6363

0 commit comments

Comments
 (0)