Files
gitx/GitX_Prefix.pch
German Laullon 94efa431a6 conditionalize usage of 10.6-only protocols
David Catmull (Uncommon)
Uncommon/gitx@e5b603f188

Conflicts:

	DBPrefsWindowController.h
	PBGitHistoryController.h
	PBGitSidebarController.h
	PBGitWindowController.h
2011-05-19 00:01:49 +02:00

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