comparison mac/dw.m @ 2839:0f92f7641d04

Mac: Fix an error in that last commit. Include UTType for 11.0 not 12.0.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Sep 2022 09:16:03 +0000
parents 30b554c34198
children 8752d65e2dc0
comparison
equal deleted inserted replaced
2838:30b554c34198 2839:0f92f7641d04
163 #define WK_API_ENABLED 1 163 #define WK_API_ENABLED 1
164 #endif 164 #endif
165 165
166 /* Handle deprecation of constants in 11.0 (also known as 10.16)... */ 166 /* Handle deprecation of constants in 11.0 (also known as 10.16)... */
167 #if (defined(MAC_OS_VERSION_11_0) || defined(MAC_OS_X_VERSION_10_16)) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_10_16) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) 167 #if (defined(MAC_OS_VERSION_11_0) || defined(MAC_OS_X_VERSION_10_16)) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_10_16) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED))
168 #import <UniformTypeIdentifiers/UTDefines.h>
169 #import <UniformTypeIdentifiers/UTType.h>
170 #import <UniformTypeIdentifiers/UTCoreTypes.h>
168 #define DWPrintingPaginationModeFit NSPrintingPaginationModeFit 171 #define DWPrintingPaginationModeFit NSPrintingPaginationModeFit
169 #define DWDatePickerModeSingle NSDatePickerModeSingle 172 #define DWDatePickerModeSingle NSDatePickerModeSingle
170 #define DWDatePickerStyleClockAndCalendar NSDatePickerStyleClockAndCalendar 173 #define DWDatePickerStyleClockAndCalendar NSDatePickerStyleClockAndCalendar
171 #define DWDatePickerElementFlagYearMonthDay NSDatePickerElementFlagYearMonthDay 174 #define DWDatePickerElementFlagYearMonthDay NSDatePickerElementFlagYearMonthDay
172 #define BUILDING_FOR_BIG_SUR 175 #define BUILDING_FOR_BIG_SUR
177 #define DWDatePickerElementFlagYearMonthDay NSYearMonthDayDatePickerElementFlag 180 #define DWDatePickerElementFlagYearMonthDay NSYearMonthDayDatePickerElementFlag
178 #endif 181 #endif
179 182
180 /* Handle deprecation of constants in 12.0 */ 183 /* Handle deprecation of constants in 12.0 */
181 #if defined(MAC_OS_VERSION_12_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_12_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) 184 #if defined(MAC_OS_VERSION_12_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_12_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED))
182 #import <UniformTypeIdentifiers/UTDefines.h>
183 #import <UniformTypeIdentifiers/UTType.h>
184 #import <UniformTypeIdentifiers/UTCoreTypes.h>
185 #define BUILDING_FOR_MONTEREY 185 #define BUILDING_FOR_MONTEREY
186 #endif 186 #endif
187 187
188 /* Handle deprecation of constants in 13.0 */ 188 /* Handle deprecation of constants in 13.0 */
189 #if defined(MAC_OS_VERSION_13_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_13_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) 189 #if defined(MAC_OS_VERSION_13_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_13_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED))