mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
94efa431a6
David Catmull (Uncommon) Uncommon/gitx@e5b603f188 Conflicts: DBPrefsWindowController.h PBGitHistoryController.h PBGitSidebarController.h PBGitWindowController.h
33 lines
719 B
Plaintext
33 lines
719 B
Plaintext
//
|
|
// 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
|