/*
- * Copyright (c) 2008 Apple Inc. All rights reserved.
+ * Copyright (c) 2009 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* @APPLE_LICENSE_HEADER_END@
*/
/* CFCalendar.h
- Copyright (c) 2004-2007, Apple Inc. All rights reserved.
+ Copyright (c) 2004-2009, Apple Inc. All rights reserved.
*/
#if !defined(__COREFOUNDATION_CFCALENDAR__)
enum {
- kCFCalendarUnitEra = (1 << 1),
- kCFCalendarUnitYear = (1 << 2),
- kCFCalendarUnitMonth = (1 << 3),
- kCFCalendarUnitDay = (1 << 4),
- kCFCalendarUnitHour = (1 << 5),
- kCFCalendarUnitMinute = (1 << 6),
- kCFCalendarUnitSecond = (1 << 7),
- kCFCalendarUnitWeek = (1 << 8),
- kCFCalendarUnitWeekday = (1 << 9),
- kCFCalendarUnitWeekdayOrdinal = (1 << 10)
+ kCFCalendarUnitEra = (1UL << 1),
+ kCFCalendarUnitYear = (1UL << 2),
+ kCFCalendarUnitMonth = (1UL << 3),
+ kCFCalendarUnitDay = (1UL << 4),
+ kCFCalendarUnitHour = (1UL << 5),
+ kCFCalendarUnitMinute = (1UL << 6),
+ kCFCalendarUnitSecond = (1UL << 7),
+ kCFCalendarUnitWeek = (1UL << 8),
+ kCFCalendarUnitWeekday = (1UL << 9),
+ kCFCalendarUnitWeekdayOrdinal = (1UL << 10),
+#if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED
+ kCFCalendarUnitQuarter = (1UL << 11),
+#endif
};
typedef CFOptionFlags CFCalendarUnit;
enum {
- kCFCalendarComponentsWrap = (1 << 0) // option for adding
+ kCFCalendarComponentsWrap = (1UL << 0) // option for adding
};
CF_EXPORT