equal
deleted
inserted
replaced
31 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) { |
31 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) { |
32 if (IS_IPAD()) |
32 if (IS_IPAD()) |
33 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) || |
33 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) || |
34 (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
34 (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
35 else |
35 else |
36 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); |
36 return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); |
37 } |
37 } |
38 |
38 |
39 NSInteger inline randomPort () { |
39 NSInteger inline randomPort () { |
40 srandom(time(NULL)); |
40 srandom(time(NULL)); |
41 NSInteger res = (random() % 64511) + 1024; |
41 NSInteger res = (random() % 64511) + 1024; |