forked from dgrijalva/gitx
-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathGitX_Prefix.pch
More file actions
32 lines (27 loc) · 719 Bytes
/
GitX_Prefix.pch
File metadata and controls
32 lines (27 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Prefix header for all source files of the 'GitTest' target in the 'GitTest' project
//
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
#ifndef DLog
#ifdef DEBUG
# define DLog(...) NSLog(__VA_ARGS__)
#else
# define DLog(...) /* */
#endif
#endif
#ifndef ALog
#define ALog(...) DLog(__VA_ARGS__)
#endif
// In 10.6, some NSObject categories (like NSWindowDelegate) were changed to
// protocols. Thus to avoid warnings we need to add protocol specifiers, but
// only when compiling for 10.6+.
#ifndef MAC_OS_X_VERSION_10_6
#define MAC_OS_X_VERSION_10_6 1060
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
#define PROTOCOL_10_6(...) <__VA_ARGS__>
#else
#define PROTOCOL_10_6(...)
#endif