X-Git-Url: https://git.saurik.com/apple/cf.git/blobdiff_plain/b0e0750aaee7a1a2cd8e3aa918bd9fc756e9dfcf..cf7d2af96685aba74e84652f9ed1098e9253902e:/CFCalendar.h diff --git a/CFCalendar.h b/CFCalendar.h index b867306..c6179fb 100644 --- a/CFCalendar.h +++ b/CFCalendar.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Apple Inc. All rights reserved. + * Copyright (c) 2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -21,7 +21,7 @@ * @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__) @@ -79,16 +79,19 @@ void CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar, CFIndex mwd) AV 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; @@ -115,7 +118,7 @@ Boolean CFCalendarDecomposeAbsoluteTime(CFCalendarRef calendar, CFAbsoluteTime a enum { - kCFCalendarComponentsWrap = (1 << 0) // option for adding + kCFCalendarComponentsWrap = (1UL << 0) // option for adding }; CF_EXPORT